… | |
… | |
190 | { |
190 | { |
191 | if (delayed_update) |
191 | if (delayed_update) |
192 | ob->update_stats (); |
192 | ob->update_stats (); |
193 | } |
193 | } |
194 | |
194 | |
|
|
195 | #if 0 |
|
|
196 | enum { |
|
|
197 | SA_SPELLS = 1<<0, |
|
|
198 | SA_EXP = 1<<1, |
|
|
199 | }; |
|
|
200 | |
|
|
201 | uint8 ACxC (RW, stat_update_flags); |
|
|
202 | |
|
|
203 | void need_stat_update (int flags) |
|
|
204 | { |
|
|
205 | stat_update_flags |= flags; |
|
|
206 | } |
|
|
207 | #endif |
|
|
208 | |
195 | // return the los value for the given coordinate |
209 | // return the los value for the given coordinate |
196 | MTH sint8 blocked_los (int dx, int dy) const |
210 | MTH sint8 blocked_los (int dx, int dy) const |
197 | { |
211 | { |
198 | dx += LOS_X0; |
212 | dx += LOS_X0; |
199 | dy += LOS_Y0; |
213 | dy += LOS_Y0; |