… | |
… | |
1079 | /* NO_FIX_PLAYER is set when a great many changes are being |
1079 | /* NO_FIX_PLAYER is set when a great many changes are being |
1080 | * made to players inventory. If set, avoiding the call |
1080 | * made to players inventory. If set, avoiding the call |
1081 | * to save cpu time. |
1081 | * to save cpu time. |
1082 | */ |
1082 | */ |
1083 | if (pl) |
1083 | if (pl) |
1084 | if (pl->contr && !QUERY_FLAG (pl, FLAG_NO_FIX_PLAYER)) |
1084 | if (pl->is_player () && (glow_radius || !QUERY_FLAG (pl, FLAG_NO_FIX_PLAYER))) |
1085 | { |
1085 | { |
1086 | pl->update_stats (); |
1086 | pl->update_stats (); |
1087 | |
1087 | |
1088 | if (affects_los () && pl->is_on_map () && pl->map->darkness) |
1088 | if (glow_radius && pl->is_on_map () && pl->map->darkness) |
1089 | update_all_los (pl->map, pl->x, pl->y); |
1089 | update_all_los (pl->map, pl->x, pl->y); |
1090 | } |
1090 | } |
1091 | } |
1091 | } |
1092 | else if (map) |
1092 | else if (map) |
1093 | { |
1093 | { |