From 445709037daab969df682e6cb9ab2f1c0bc31f97 Mon Sep 17 00:00:00 2001 From: Monster Iestyn <iestynjealous@ntlworld.com> Date: Sat, 4 May 2019 20:17:00 +0100 Subject: [PATCH] Fix some compiler complaints about A_Boss5FindWaypoint --- src/p_enemy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index d9f8af96f..e3573e604 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -15,6 +15,7 @@ #include "doomdef.h" #include "g_game.h" #include "p_local.h" +#include "p_setup.h" #include "r_main.h" #include "r_state.h" #include "s_sound.h" @@ -22,6 +23,7 @@ #include "m_misc.h" #include "r_things.h" #include "i_video.h" +#include "z_zone.h" #include "lua_hook.h" #ifdef HW3SOUND @@ -11876,13 +11878,13 @@ void A_Boss5FindWaypoint(mobj_t *actor) INT32 locvar1 = var1; //INT32 locvar2 = var2; boolean avoidcenter; - INT32 i; + UINT32 i; #ifdef HAVE_BLUA if (LUA_CallAction("A_Boss5FindWaypoint", actor)) return; #endif - avoidcenter = !actor->tracer || (mobj->health == mobj->info->damage+1); + avoidcenter = !actor->tracer || (actor->health == actor->info->damage+1); if (locvar1 == 2) // look for the boss waypoint {