home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove redundant uses of NULL.
[plomrogue]
/
src
/
server
/
field_of_view.c
diff --git
a/src/server/field_of_view.c
b/src/server/field_of_view.c
index 4b1ac00194d6a9498b2e3a5a3a8bba818bb147cd..07e1455999a0f81de63ce97b667ed03fd6f6a6b6 100644
(file)
--- a/
src/server/field_of_view.c
+++ b/
src/server/field_of_view.c
@@
-374,7
+374,7
@@
static void update_map_memory(struct Thing * t_eye, uint32_t map_size)
struct ThingInMemory * tm = t_eye->t_mem;
struct ThingInMemory * tm_prev = NULL;
struct ThingInMemory * tm_next = NULL;
struct ThingInMemory * tm = t_eye->t_mem;
struct ThingInMemory * tm_prev = NULL;
struct ThingInMemory * tm_next = NULL;
- for (; tm
!= NULL
; tm = tm_next)
+ for (; tm; tm = tm_next)
{
tm_next = tm->next;
if ('v' == t_eye->fov_map[tm->pos.y * world.map.length + tm->pos.x])
{
tm_next = tm->next;
if ('v' == t_eye->fov_map[tm->pos.y * world.map.length + tm->pos.x])
@@
-393,7
+393,7
@@
static void update_map_memory(struct Thing * t_eye, uint32_t map_size)
tm_prev = tm;
}
struct Thing * t = world.things;
tm_prev = tm;
}
struct Thing * t = world.things;
- for (; t
!= NULL
; t = t->next)
+ for (; t; t = t->next)
{
if ( !t->lifepoints
&& 'v' == t_eye->fov_map[t->pos.y * world.map.length + t->pos.x])
{
if ( !t->lifepoints
&& 'v' == t_eye->fov_map[t->pos.y * world.map.length + t->pos.x])