Convert dynent to a class
FossilOrigin-Name: d2b3ff790fee10ef4150cdb17f1c979e7001a420b2629b153b4dbf4c0b489704
This commit is contained in:
parent
410e244ed6
commit
90fc249052
26 changed files with 1447 additions and 1061 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include "cube.h"
|
||||
|
||||
#import "DynamicEntity.h"
|
||||
|
||||
extern bool hasoverbright;
|
||||
|
||||
VAR(lightscale, 1, 4, 100);
|
||||
|
@ -201,11 +203,11 @@ cleardlights()
|
|||
|
||||
void
|
||||
dodynlight(const OFVector3D &vold, const OFVector3D &v, int reach, int strength,
|
||||
dynent *owner)
|
||||
DynamicEntity *owner)
|
||||
{
|
||||
if (!reach)
|
||||
reach = dynlight;
|
||||
if (owner->monsterstate)
|
||||
if (owner.monsterstate)
|
||||
reach = reach / 2;
|
||||
if (!reach)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue