home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: Remove unneeded library includes.
[plomrogue]
/
src
/
server
/
map.c
diff --git
a/src/server/map.c
b/src/server/map.c
index 50c7bf1560105c5e6b3f2af12971637492ae2ac5..ae907d2327363fef50919575440a27a6a094a702 100644
(file)
--- a/
src/server/map.c
+++ b/
src/server/map.c
@@
-5,7
+5,7
@@
#include <stdlib.h> /* free() */
#include "../common/rexit.h" /* exit_err() */
#include "../common/try_malloc.h" /* try_malloc() */
#include <stdlib.h> /* free() */
#include "../common/rexit.h" /* exit_err() */
#include "../common/try_malloc.h" /* try_malloc() */
-#include "../common/yx_uint8.h" /*
struct
yx_uint8 */
+#include "../common/yx_uint8.h" /* yx_uint8 */
#include "rrand.h" /* rrand() */
#include "yx_uint8.h" /* mv_yx_in_dir_wrap() */
#include "world.h" /* global world */
#include "rrand.h" /* rrand() */
#include "yx_uint8.h" /* mv_yx_in_dir_wrap() */
#include "world.h" /* global world */
@@
-152,18
+152,6
@@
extern void remake_map()
-extern uint8_t is_passable(struct yx_uint8 pos)
-{
- uint8_t passable = 0;
- if (pos.x < world.map.length && pos.y < world.map.length)
- {
- passable = ('.' == world.map.cells[(pos.y * world.map.length) + pos.x]);
- }
- return passable;
-}
-
-
-
extern uint8_t mv_yx_in_dir_legal(char dir, struct yx_uint8 * yx)
{
uint8_t wraptest = mv_yx_in_dir_wrap(dir, yx, 0);
extern uint8_t mv_yx_in_dir_legal(char dir, struct yx_uint8 * yx)
{
uint8_t wraptest = mv_yx_in_dir_wrap(dir, yx, 0);