diff --git a/src/m_cheat.cpp b/src/m_cheat.cpp index 12c6defc8..9ef09a69a 100644 --- a/src/m_cheat.cpp +++ b/src/m_cheat.cpp @@ -65,6 +65,7 @@ #include "vm.h" #include "events.h" #include "p_acs.h" +#include "zstring.h" // [RH] Actually handle the cheat. The cheat code in st_stuff.c now just // writes some bytes to the network data stream, and the network code diff --git a/src/m_cheat.h b/src/m_cheat.h index a6bb5ab68..f2160b729 100644 --- a/src/m_cheat.h +++ b/src/m_cheat.h @@ -1,6 +1,8 @@ #ifndef __M_CHEAT_H__ #define __M_CHEAT_H__ +#include "zstring.h" + // // CHEAT SEQUENCE PACKAGE // diff --git a/src/posix/cocoa/i_system.mm b/src/posix/cocoa/i_system.mm index bc8b9e069..95489aeab 100644 --- a/src/posix/cocoa/i_system.mm +++ b/src/posix/cocoa/i_system.mm @@ -143,10 +143,7 @@ static void I_FatalError(const char* const error, va_list ap) char errortext[MAX_ERRORTEXT]; int index; - va_list argptr; - va_start(argptr, error); index = vsnprintf(errortext, MAX_ERRORTEXT, error, ap); - va_end(argptr); extern void Mac_I_FatalError(const char*); Mac_I_FatalError(errortext); diff --git a/src/scriptutil.cpp b/src/scriptutil.cpp index f5d88087b..3ba2ce451 100644 --- a/src/scriptutil.cpp +++ b/src/scriptutil.cpp @@ -29,6 +29,7 @@ #include "vm.h" #include "scriptutil.h" #include "p_acs.h" +#include "actor.h" static TArray parameters;