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: Refactor writing of field of view to Thing struct.
[plomrogue]
/
src
/
server
/
init.c
diff --git
a/src/server/init.c
b/src/server/init.c
index 01950bcac3111f455dabd97eb515090e8c89d3e2..42ec699a921d067f237c7eb67c9bafaa78454463 100644
(file)
--- a/
src/server/init.c
+++ b/
src/server/init.c
@@
-215,7
+215,10
@@
extern uint8_t remake_world()
struct Thing * t;
for (t = world.things; NULL != t; t = t->next)
{
- t->fov_map = t->lifepoints ? build_fov_map(t) : NULL;
+ if (t->lifepoints)
+ {
+ build_fov_map(t);
+ }
}
world.turn = 1;
world.do_update = 1;