… | |
… | |
236 | |
236 | |
237 | object *tmp = ol->ob; |
237 | object *tmp = ol->ob; |
238 | |
238 | |
239 | if (tmp->type == BUTTON) |
239 | if (tmp->type == BUTTON) |
240 | { |
240 | { |
241 | sint32 total = 0; |
241 | weight_t total = 0; |
242 | |
242 | |
243 | for (object *ab = tmp->above; ab; ab = ab->above) |
243 | for (object *ab = tmp->above; ab; ab = ab->above) |
244 | /* Basically, if the move_type matches that on what the |
244 | /* Basically, if the move_type matches that on what the |
245 | * button wants, we count it. The second check is so that |
245 | * button wants, we count it. The second check is so that |
246 | * objects who don't move (swords, etc) will count. Note that |
246 | * objects who don't move (swords, etc) will count. Note that |