… | |
… | |
2954 | level = ob->map->darklevel () - 2; |
2954 | level = ob->map->darklevel () - 2; |
2955 | |
2955 | |
2956 | /* this also picks up whether the object is glowing. |
2956 | /* this also picks up whether the object is glowing. |
2957 | * If you carry a light on a non-dark map, its not |
2957 | * If you carry a light on a non-dark map, its not |
2958 | * as bad as carrying a light on a pitch dark map */ |
2958 | * as bad as carrying a light on a pitch dark map */ |
2959 | if (has_carried_lights (ob)) |
2959 | if (ob->has_carried_lights ()) |
2960 | level = -(10 + (2 * ob->map->darklevel ())); |
2960 | level = -(10 + (2 * ob->map->darklevel ())); |
2961 | |
2961 | |
2962 | /* scan through all nearby squares for terrain to hide in */ |
2962 | /* scan through all nearby squares for terrain to hide in */ |
2963 | for (i = 0, x = ob->x, y = ob->y; |
2963 | for (i = 0, x = ob->x, y = ob->y; |
2964 | i <= SIZEOFFREE1; |
2964 | i <= SIZEOFFREE1; |