aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Janzen <jjanzenn@proton.me>2024-04-20 18:09:32 -0500
committerJacob Janzen <jjanzenn@proton.me>2024-04-20 18:09:32 -0500
commit39cfe71bffeadefdac980d153fa41ee41b712a65 (patch)
tree904be3162ea52b0f4610f278ed17fec421e2fc26
parent713149da3cb275e8b9f7ab236db6f59f8a866bcb (diff)
fix gpl comment
-rw-r--r--src/cavegen.c2
-rw-r--r--src/cavegen.h2
-rw-r--r--src/common.h2
-rw-r--r--src/display.c14
-rw-r--r--src/display.h2
-rw-r--r--src/entity.h2
-rw-r--r--src/ht.c2
-rw-r--r--src/ht.h2
-rw-r--r--src/main.c2
9 files changed, 18 insertions, 12 deletions
diff --git a/src/cavegen.c b/src/cavegen.c
index cdc4ce6..8a74836 100644
--- a/src/cavegen.c
+++ b/src/cavegen.c
@@ -6,7 +6,7 @@ either version 3 of the License, or (at your option) any later version. urlg is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details. You should have
-received a copy of the GNU General Public License along with Foobar. If not, see
+received a copy of the GNU General Public License along with urlg. If not, see
<https://www.gnu.org/licenses/>.
*/
#include "cavegen.h"
diff --git a/src/cavegen.h b/src/cavegen.h
index 7f3ee0d..ae5f698 100644
--- a/src/cavegen.h
+++ b/src/cavegen.h
@@ -6,7 +6,7 @@ either version 3 of the License, or (at your option) any later version. urlg is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details. You should have
-received a copy of the GNU General Public License along with Foobar. If not, see
+received a copy of the GNU General Public License along with urlg. If not, see
<https://www.gnu.org/licenses/>.
*/
#ifndef CAVEGEN_H_
diff --git a/src/common.h b/src/common.h
index f88099e..c36f0f2 100644
--- a/src/common.h
+++ b/src/common.h
@@ -6,7 +6,7 @@ either version 3 of the License, or (at your option) any later version. urlg is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details. You should have
-received a copy of the GNU General Public License along with Foobar. If not, see
+received a copy of the GNU General Public License along with urlg. If not, see
<https://www.gnu.org/licenses/>.
*/
#ifndef COMMON_H_
diff --git a/src/display.c b/src/display.c
index 37970a2..28bd823 100644
--- a/src/display.c
+++ b/src/display.c
@@ -6,7 +6,7 @@ either version 3 of the License, or (at your option) any later version. urlg is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details. You should have
-received a copy of the GNU General Public License along with Foobar. If not, see
+received a copy of the GNU General Public License along with urlg. If not, see
<https://www.gnu.org/licenses/>.
*/
#include "display.h"
@@ -136,11 +136,17 @@ void display_map(display_t *disp, struct map *map, ht_t *entities)
if (map_i > 0 &&
map->map[(map_i - 1) * map->width + map_j] != WALL) {
mvwprintw(disp->main, i, j, "█");
- } else if (map_i < map->width - 1 && map->map[(map_i + 1) * map->width + map_j] != WALL) {
+ } else if (map_i < map->width - 1 &&
+ map->map[(map_i + 1) * map->width + map_j] !=
+ WALL) {
mvwprintw(disp->main, i, j, "█");
- } else if (map_j > 0 && map->map[map_i * map->width + map_j - 1] != WALL) {
+ } else if (map_j > 0 &&
+ map->map[map_i * map->width + map_j - 1] !=
+ WALL) {
mvwprintw(disp->main, i, j, "█");
- } else if (map_j < map->width - 1 && map->map[map_i * map->width + map_j + 1] != WALL) {
+ } else if (map_j < map->width - 1 &&
+ map->map[map_i * map->width + map_j + 1] !=
+ WALL) {
mvwprintw(disp->main, i, j, "█");
} else {
mvwaddch(disp->main, i, j, ' ');
diff --git a/src/display.h b/src/display.h
index 4d79270..b5d7d53 100644
--- a/src/display.h
+++ b/src/display.h
@@ -6,7 +6,7 @@ either version 3 of the License, or (at your option) any later version. urlg is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details. You should have
-received a copy of the GNU General Public License along with Foobar. If not, see
+received a copy of the GNU General Public License along with urlg. If not, see
<https://www.gnu.org/licenses/>.
*/
#ifndef DISPLAY_H_
diff --git a/src/entity.h b/src/entity.h
index ce4bfa3..f59d868 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -6,7 +6,7 @@ either version 3 of the License, or (at your option) any later version. urlg is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details. You should have
-received a copy of the GNU General Public License along with Foobar. If not, see
+received a copy of the GNU General Public License along with urlg. If not, see
<https://www.gnu.org/licenses/>.
*/
#ifndef ENTITY_H_
diff --git a/src/ht.c b/src/ht.c
index 7a3eb23..ff0a3a8 100644
--- a/src/ht.c
+++ b/src/ht.c
@@ -6,7 +6,7 @@ either version 3 of the License, or (at your option) any later version. urlg is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details. You should have
-received a copy of the GNU General Public License along with Foobar. If not, see
+received a copy of the GNU General Public License along with urlg. If not, see
<https://www.gnu.org/licenses/>.
*/
#include "ht.h"
diff --git a/src/ht.h b/src/ht.h
index 61164e8..236ae4e 100644
--- a/src/ht.h
+++ b/src/ht.h
@@ -6,7 +6,7 @@ either version 3 of the License, or (at your option) any later version. urlg is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details. You should have
-received a copy of the GNU General Public License along with Foobar. If not, see
+received a copy of the GNU General Public License along with urlg. If not, see
<https://www.gnu.org/licenses/>.
*/
#ifndef HT_H_
diff --git a/src/main.c b/src/main.c
index 4ec71fa..6d898eb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,7 +6,7 @@ either version 3 of the License, or (at your option) any later version. urlg is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details. You should have
-received a copy of the GNU General Public License along with Foobar. If not, see
+received a copy of the GNU General Public License along with urlg. If not, see
<https://www.gnu.org/licenses/>.
*/
#include <curses.h>