X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fserver%2Fmap.c;h=8ed37d9b50cbd017baf0cb2c0464e5e547aebeab;hb=1c7d2240c874aa6697d99b0fb058ac490db8c414;hp=059a7133134cea14f0c4343241f05fba373daf84;hpb=1452d43c6d7c89219cda91362da53ac8e4acb887;p=plomrogue
diff --git a/src/server/map.c b/src/server/map.c
index 059a713..8ed37d9 100644
--- a/src/server/map.c
+++ b/src/server/map.c
@@ -139,9 +139,8 @@ static void make_trees()
extern void remake_map()
{
- char * f_name = "init_map()";
free(world.map.cells);
- world.map.cells = try_malloc(world.map.length * world.map.length, f_name);
+ world.map.cells = try_malloc(world.map.length * world.map.length, __func__);
uint32_t store_seed = world.seed;
world.seed = world.seed_map;
make_sea();
@@ -161,10 +160,3 @@ extern uint8_t is_passable(struct yx_uint8 pos)
}
return passable;
}
-
-
-
-extern uint16_t yx_to_map_pos(struct yx_uint8 * yx)
-{
- return (yx->y * world.map.length) + yx->x;
-}