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.178 by root, Sun Aug 12 14:13:54 2007 UTC vs.
Revision 1.180 by root, Wed Aug 15 04:59:46 2007 UTC

1238 1238
1239 object *top, *floor = NULL; 1239 object *top, *floor = NULL;
1240 1240
1241 op->remove (); 1241 op->remove ();
1242 1242
1243#if 0
1244 if (!m->active != !op->active)
1245 if (m->active)
1246 op->activate_recursive ();
1247 else
1248 op->deactivate_recursive ();
1249#endif
1250
1251 if (out_of_map (m, op->x, op->y)) 1243 if (out_of_map (m, op->x, op->y))
1252 { 1244 {
1253 LOG (llevError, "Trying to insert object outside the map.\n%s\n", op->debug_desc ()); 1245 LOG (llevError, "Trying to insert object outside the map.\n%s\n", op->debug_desc ());
1254#ifdef MANY_CORES 1246#ifdef MANY_CORES
1255 /* Better to catch this here, as otherwise the next use of this object 1247 /* Better to catch this here, as otherwise the next use of this object
1421 op->map->touch (); 1413 op->map->touch ();
1422 } 1414 }
1423 1415
1424 op->map->dirty = true; 1416 op->map->dirty = true;
1425 1417
1426 /* If we have a floor, we know the player, if any, will be above
1427 * it, so save a few ticks and start from there.
1428 */
1429 if (!(flag & INS_MAP_LOAD)) 1418 if (!(flag & INS_MAP_LOAD))
1430 if (object *pl = ms.player ()) 1419 if (object *pl = ms.player ())
1431 pl->contr->ns->floorbox_update (); 1420 pl->contr->ns->floorbox_update ();
1432 1421
1433 /* If this object glows, it may affect lighting conditions that are 1422 /* If this object glows, it may affect lighting conditions that are

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines