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.262 by elmex, Wed Oct 22 19:51:41 2008 UTC vs.
Revision 1.263 by root, Sat Dec 20 16:29:41 2008 UTC

1157 } 1157 }
1158 1158
1159 last = tmp; 1159 last = tmp;
1160 } 1160 }
1161 1161
1162 if (flag [FLAG_BLOCKSVIEW] || glow_radius) 1162 if (glow_radius || flag [FLAG_BLOCKSVIEW])
1163 update_all_los (map, x, y); 1163 update_all_los (map, x, y);
1164 } 1164 }
1165} 1165}
1166 1166
1167/* 1167/*
1439 * be far away from this change and not affected in any way - 1439 * be far away from this change and not affected in any way -
1440 * this should get redone to only look for players within range, 1440 * this should get redone to only look for players within range,
1441 * or just updating the P_UPTODATE for spaces within this area 1441 * or just updating the P_UPTODATE for spaces within this area
1442 * of effect may be sufficient. 1442 * of effect may be sufficient.
1443 */ 1443 */
1444 if (op->map->darkness && (op->glow_radius != 0)) 1444 if (op->map->darkness && (op->glow_radius || op->flag [FLAG_BLOCKSVIEW]))
1445 update_all_los (op->map, op->x, op->y); 1445 update_all_los (op->map, op->x, op->y);
1446 1446
1447 /* updates flags (blocked, alive, no magic, etc) for this map space */ 1447 /* updates flags (blocked, alive, no magic, etc) for this map space */
1448 update_object (op, UP_OBJ_INSERT); 1448 update_object (op, UP_OBJ_INSERT);
1449 1449

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines