home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some code-internal restructuring following the assumption that game map height /
[plomrogue]
/
src
/
server
/
io.c
diff --git
a/src/server/io.c
b/src/server/io.c
index 817d54253c40f69edc2225ef7f53e4769d15e78b..a516d81b018b121a90c3fb614415b029634c81d1 100644
(file)
--- a/
src/server/io.c
+++ b/
src/server/io.c
@@
-183,7
+183,7
@@
static void write_inventory(struct MapObj * player, FILE * file)
static void write_map(FILE * file)
{
char * f_name = "write_map()";
static void write_map(FILE * file)
{
char * f_name = "write_map()";
- uint
32
_t map_size = world.map.size.y * world.map.size.x;
+ uint
16
_t map_size = world.map.size.y * world.map.size.x;
char visible_map[map_size];
memcpy(visible_map, world.map.cells, map_size);
struct MapObj * o;
char visible_map[map_size];
memcpy(visible_map, world.map.cells, map_size);
struct MapObj * o;
@@
-203,7
+203,7
@@
static void write_map(FILE * file)
}
}
}
}
}
}
- uint
16
_t x, y;
+ uint
8
_t x, y;
for (y = 0; y < world.map.size.y; y++)
{
for (x = 0; x < world.map.size.x; x++)
for (y = 0; y < world.map.size.y; y++)
{
for (x = 0; x < world.map.size.x; x++)