… | |
… | |
691 | */ |
691 | */ |
692 | if (!op->map || op->map->in_memory == MAP_SAVING) |
692 | if (!op->map || op->map->in_memory == MAP_SAVING) |
693 | return; |
693 | return; |
694 | |
694 | |
695 | /* make sure the object is within map boundaries */ |
695 | /* make sure the object is within map boundaries */ |
696 | if (op->x < 0 || op->x >= MAP_WIDTH (op->map) || op->y < 0 || op->y >= MAP_HEIGHT (op->map)) |
696 | if (op->x < 0 || op->x >= op->map->width || op->y < 0 || op->y >= op->map->height) |
697 | { |
697 | { |
698 | LOG (llevError, "update_object() called for object out of map!\n"); |
698 | LOG (llevError, "update_object() called for object out of map!\n"); |
699 | #ifdef MANY_CORES |
699 | #ifdef MANY_CORES |
700 | abort (); |
700 | abort (); |
701 | #endif |
701 | #endif |