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.304 by root, Tue Nov 10 16:29:20 2009 UTC vs.
Revision 1.305 by root, Wed Nov 11 04:45:22 2009 UTC

1126 1126
1127 above = 0; 1127 above = 0;
1128 below = 0; 1128 below = 0;
1129 env = 0; 1129 env = 0;
1130 1130
1131 /* NO_FIX_PLAYER is set when a great many changes are being 1131 if (pl && pl->is_player ())
1132 * made to players inventory. If set, avoiding the call
1133 * to save cpu time.
1134 */
1135 if (pl)
1136 if (pl->is_player () && (glow_radius || !QUERY_FLAG (pl, FLAG_NO_FIX_PLAYER)))
1137 { 1132 {
1138 pl->update_stats (); 1133 pl->contr->queue_stats_update ();
1139 1134
1140 if (glow_radius && pl->is_on_map ()) 1135 if (glow_radius && pl->is_on_map ())
1141 update_all_los (pl->map, pl->x, pl->y); 1136 update_all_los (pl->map, pl->x, pl->y);
1142 } 1137 }
1143 } 1138 }
1144 else if (map) 1139 else if (map)
1145 { 1140 {
1146 map->dirty = true; 1141 map->dirty = true;
1147 mapspace &ms = this->ms (); 1142 mapspace &ms = this->ms ();
1738 if (op->glow_radius && is_on_map ()) 1733 if (op->glow_radius && is_on_map ())
1739 { 1734 {
1740 update_stats (); 1735 update_stats ();
1741 update_all_los (map, x, y); 1736 update_all_los (map, x, y);
1742 } 1737 }
1743 else if (is_player () && !flag [FLAG_NO_FIX_PLAYER]) 1738 else if (is_player ())
1744 // if this is a player's inventory, update stats 1739 // if this is a player's inventory, update stats
1745 update_stats (); 1740 contr->queue_stats_update ();
1746 1741
1747 INVOKE_OBJECT (INSERT, this); 1742 INVOKE_OBJECT (INSERT, this);
1748 1743
1749 return op; 1744 return op;
1750} 1745}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines