ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/object.C
(Generate patch)

Comparing deliantra/server/common/object.C (file contents):
Revision 1.266 by root, Tue Dec 23 01:13:15 2008 UTC vs.
Revision 1.267 by root, Tue Dec 23 01:51:27 2008 UTC

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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines