From e7db6549348a38c3b44eb15f475166dbf60aa74c Mon Sep 17 00:00:00 2001 From: Knightmare66 Date: Tue, 27 Oct 2020 02:31:41 -0400 Subject: [PATCH] Added entity class IDs for misc_actor and target_actor in default Lazarus DLL. Restored updated GPL header in game/g_local.h. --- game/g_local.h | 24 +++++++++++++----------- game/m_actor.c | 2 ++ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/game/g_local.h b/game/g_local.h index 94c7b51..5659722 100644 --- a/game/g_local.h +++ b/game/g_local.h @@ -1,22 +1,24 @@ /* +=========================================================================== Copyright (C) 1997-2001 Id Software, Inc. Copyright (C) 2000-2002 Mr. Hyde and Mad Dog -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. +This file is part of Lazarus Quake 2 Mod source code. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +Lazarus Quake 2 Mod source code is free software; you can redistribute it +and/or modify it under the terms of the GNU General Public License as +published by the Free Software Foundation; either version 2 of the License, +or (at your option) any later version. -See the GNU General Public License for more details. +Lazarus Quake 2 Mod source code is distributed in the hope that it will be +useful, but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - +along with Lazarus Quake 2 Mod source code; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +=========================================================================== */ // g_local.h -- local definitions for game module diff --git a/game/m_actor.c b/game/m_actor.c index 344b062..8a1eec8 100644 --- a/game/m_actor.c +++ b/game/m_actor.c @@ -1273,6 +1273,7 @@ void SP_misc_actor (edict_t *self) return; } + self->class_id = ENTITY_MISC_ACTOR; self->movetype = MOVETYPE_STEP; self->solid = SOLID_BBOX; @@ -1729,6 +1730,7 @@ void SP_target_actor (edict_t *self) G_FreeEdict(self); return; } + self->class_id = ENTITY_TARGET_ACTOR; if (!self->targetname) gi.dprintf ("%s with no targetname at %s\n", self->classname, vtos(self->s.origin));