Mercurial > hg > early-roguelike
comparison rogue3/chase.c @ 180:d9e44e18eeec
rogue3: initialize various pointers.
MSVC is afraid they might get used while uninitialized.
author | John "Elwin" Edwards |
---|---|
date | Fri, 31 Jul 2015 15:34:34 -0400 |
parents | 527e2150eaf0 |
children |
comparison
equal
deleted
inserted
replaced
172:c199a15a2c70 | 180:d9e44e18eeec |
---|---|
160 chase(struct thing *tp, coord *ee) | 160 chase(struct thing *tp, coord *ee) |
161 { | 161 { |
162 int x, y; | 162 int x, y; |
163 int dist, thisdist; | 163 int dist, thisdist; |
164 struct linked_list *item; | 164 struct linked_list *item; |
165 struct object *obj; | 165 struct object *obj = NULL; |
166 coord *er = &tp->t_pos; | 166 coord *er = &tp->t_pos; |
167 int ch; | 167 int ch; |
168 | 168 |
169 /* | 169 /* |
170 * If the thing is confused, let it move randomly. Invisible | 170 * If the thing is confused, let it move randomly. Invisible |