201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
|
void
dodynlight(const OFVector3D *vold, const OFVector3D *v, int reach, int strength,
DynamicEntity *owner)
{
if (!reach)
reach = dynlight;
if (owner.monsterstate)
reach = reach / 2;
if (!reach)
return;
if (v->x < 0 || v->y < 0 || v->x > ssize || v->y > ssize)
return;
int creach = reach + 16; // dependant on lightray random offsets!
|
|
|
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
|
void
dodynlight(const OFVector3D *vold, const OFVector3D *v, int reach, int strength,
DynamicEntity *owner)
{
if (!reach)
reach = dynlight;
if (owner.monsterState)
reach = reach / 2;
if (!reach)
return;
if (v->x < 0 || v->y < 0 || v->x > ssize || v->y > ssize)
return;
int creach = reach + 16; // dependant on lightray random offsets!
|