From 4c8dfb375b4b30dbb6079f9d68024980d81ffa20 Mon Sep 17 00:00:00 2001 From: xolatile Date: Thu, 7 Aug 2025 00:32:29 +0200 Subject: More cleanups... --- src/shared/ents.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/shared/ents.h') diff --git a/src/shared/ents.h b/src/shared/ents.h index 6b1dfca..fece7bf 100644 --- a/src/shared/ents.h +++ b/src/shared/ents.h @@ -3,7 +3,7 @@ // ET_*: the only static entity types dictated by the engine... rest are gamecode dependent -enum { ET_EMPTY=0, ET_LIGHT, ET_MAPMODEL, ET_PLAYERSTART, ET_PARTICLES, ET_SOUND, ET_SPOTLIGHT, ET_GAMESPECIFIC }; +enum { ET_EMPTY=0, ET_LIGHT, ET_MAPMODEL, ET_PLAYERSTART, ET_PARTICLES, ET_SOUND, ET_GAMESPECIFIC }; // persistent map entity struct entity { @@ -35,8 +35,7 @@ enum { struct extentity : entity { int flags; // the only dynamic state of a map entity entitylight light; - extentity *attached; - extentity() : flags(0), attached(NULL) {} + extentity() : flags(0) {} bool spawned() const { return (flags&EF_SPAWNED) != 0; } void setspawned(bool val) { if(val) flags |= EF_SPAWNED; else flags &= ~EF_SPAWNED; } void setspawned() { flags |= EF_SPAWNED; } -- cgit v1.2.3