… | |
… | |
162 | partylist *ACC (RW, party); /* Party this player is part of */ |
162 | partylist *ACC (RW, party); /* Party this player is part of */ |
163 | partylist *ACC (RW, party_to_join); /* used when player wants to join a party */ |
163 | partylist *ACC (RW, party_to_join); /* used when player wants to join a party */ |
164 | /* but we will have to get password first */ |
164 | /* but we will have to get password first */ |
165 | /* so we have to remember which party to */ |
165 | /* so we have to remember which party to */ |
166 | /* join */ |
166 | /* join */ |
167 | char ACC (RW, search_str)[MAX_BUF]; /* Item we are looking for */ |
167 | char ACC (RW, search_str)[256]; /* Item we are looking for */ |
168 | sint16 ACC (RW, encumbrance); /* How much our player is encumbered */ |
168 | sint16 ACC (RW, encumbrance); /* How much our player is encumbered */ |
169 | uint16 ACC (RW, outputs_sync); /* How often to print, no matter what */ |
169 | uint16 ACC (RW, outputs_sync); /* How often to print, no matter what */ |
170 | uint16 ACC (RW, outputs_count); /* Print if this count is exceeded */ |
170 | uint16 ACC (RW, outputs_count); /* Print if this count is exceeded */ |
171 | object_ptr ACC (RW, mark); /* marked object */ |
171 | object_ptr ACC (RW, mark); /* marked object */ |
172 | /* Special DM fields */ |
172 | /* Special DM fields */ |
… | |
… | |
176 | /* the player can see. For maps smaller than */ |
176 | /* the player can see. For maps smaller than */ |
177 | /* MAP_CLIENT_.., the center is used */ |
177 | /* MAP_CLIENT_.., the center is used */ |
178 | |
178 | |
179 | //-GPL |
179 | //-GPL |
180 | |
180 | |
|
|
181 | // stats updates are very costly, so delay them if at all possible |
|
|
182 | bool ACC (RW, delayed_update); |
|
|
183 | void queue_stats_update () |
|
|
184 | { |
|
|
185 | delayed_update = true; |
|
|
186 | } |
|
|
187 | void need_updated_stats () |
|
|
188 | { |
|
|
189 | if (delayed_update) |
|
|
190 | ob->update_stats (); |
|
|
191 | } |
|
|
192 | |
181 | // return the los value for the given coordinate |
193 | // return the los value for the given coordinate |
182 | MTH sint8 blocked_los (int dx, int dy) const |
194 | MTH sint8 blocked_los (int dx, int dy) const |
183 | { |
195 | { |
184 | dx += LOS_X0; |
196 | dx += LOS_X0; |
185 | dy += LOS_Y0; |
197 | dy += LOS_Y0; |