Made the EventHandler class tree a bit more branchy. Now disallowing creation of Static* via EventHandler.Create.

This commit is contained in:
ZZYZX 2017-01-22 08:56:57 +02:00
commit 35ec14f465
7 changed files with 127 additions and 69 deletions

View file

@ -1245,7 +1245,7 @@ void R_AddSprites (sector_t *sec, int lightlevel, int fakeside)
if (thing->validcount == validcount) continue;
thing->validcount = validcount;
DRenderEventHandler::AutoThing autoRenderThingEvent(thing);
DStaticRenderEventHandler::AutoThing autoRenderThingEvent(thing);
FIntCVar *cvar = thing->GetClass()->distancecheck;
if (cvar != NULL && *cvar >= 0)