spawn ents right after adding them in editmode
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1858 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -184,8 +184,7 @@ void dodynlight(vec &vold, vec &v, int reach, int strength, dynent *owner)
|
||||
if(b.ys+b.y>ssize-2) b.ys = ssize-2-b.y;
|
||||
|
||||
dlights.add(blockcopy(b)); // backup area before rendering in dynlight
|
||||
|
||||
persistent_entity l = { (int)v.x, (int)v.y, (int)v.z, reach, LIGHT, strength, 0, 0 };
|
||||
persistent_entity l((int)v.x, (int)v.y, (int)v.z, LIGHT, reach, strength, 0, 0);
|
||||
calclightsource(l);
|
||||
postlightarea(b);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user