Convert dynent to a class

FossilOrigin-Name: d2b3ff790fee10ef4150cdb17f1c979e7001a420b2629b153b4dbf4c0b489704
This commit is contained in:
Jonathan Schleifer 2025-03-09 18:57:42 +00:00
parent 410e244ed6
commit 90fc249052
26 changed files with 1447 additions and 1061 deletions

View file

@ -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;