… | … | ||
---|---|---|---|
331 | archetype *tmp; | 331 | archetype *tmp; |
332 | int flag; | 332 | int flag; |
333 | maptile *m1; | 333 | maptile *m1; |
334 | sint16 sx, sy; | 334 | sint16 sx, sy; |
335 | 335 | ||
336 | if (ob == NULL) | 336 | if (!ob) |
337 | { | 337 | { |
338 | flag = get_map_flags (m, &m1, x, y, &sx, &sy); | 338 | flag = get_map_flags (m, &m1, x, y, &sx, &sy); |
339 | if (flag & P_OUT_OF_MAP) | 339 | if (flag & P_OUT_OF_MAP) |
340 | return P_OUT_OF_MAP; | 340 | return P_OUT_OF_MAP; |
341 | 341 | ||
… | … | ||
1477 | } | 1477 | } |
1478 | 1478 | ||
1479 | /* Simple case - coordinates are within this local | 1479 | /* Simple case - coordinates are within this local |
1480 | * map. | 1480 | * map. |
1481 | */ | 1481 | */ |
1482 | |||
1483 | m->last_access = runtime; | ||
1484 | return m; | 1482 | return m; |
1485 | } | 1483 | } |
1486 | 1484 | ||
1487 | /** | 1485 | /** |
1488 | * Return whether map2 is adjacent to map1. If so, store the distance from | 1486 | * Return whether map2 is adjacent to map1. If so, store the distance from |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |