Attempts to fix errors introduced by merging of asmjit branch and wea… (#649)

* Attempts to fix errors introduced by merging of asmjit branch and weapons scripting branch

* This didn't work. The others should work though.

* fix scriptutil.cpp:(.text+0x18d): undefined reference to `PClass::FindActor(FName)'

* Attempt to fix compilation on macOS

# Conflicts:
#	src/m_cheat.cpp
This commit is contained in:
SanyaWaffles 2018-12-01 01:31:25 -05:00 committed by drfrag
parent 0746784965
commit a00a567532
4 changed files with 4 additions and 3 deletions

View file

@ -65,6 +65,7 @@
#include "vm.h" #include "vm.h"
#include "events.h" #include "events.h"
#include "p_acs.h" #include "p_acs.h"
#include "zstring.h"
// [RH] Actually handle the cheat. The cheat code in st_stuff.c now just // [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 // writes some bytes to the network data stream, and the network code

View file

@ -1,6 +1,8 @@
#ifndef __M_CHEAT_H__ #ifndef __M_CHEAT_H__
#define __M_CHEAT_H__ #define __M_CHEAT_H__
#include "zstring.h"
// //
// CHEAT SEQUENCE PACKAGE // CHEAT SEQUENCE PACKAGE
// //

View file

@ -143,10 +143,7 @@ static void I_FatalError(const char* const error, va_list ap)
char errortext[MAX_ERRORTEXT]; char errortext[MAX_ERRORTEXT];
int index; int index;
va_list argptr;
va_start(argptr, error);
index = vsnprintf(errortext, MAX_ERRORTEXT, error, ap); index = vsnprintf(errortext, MAX_ERRORTEXT, error, ap);
va_end(argptr);
extern void Mac_I_FatalError(const char*); extern void Mac_I_FatalError(const char*);
Mac_I_FatalError(errortext); Mac_I_FatalError(errortext);

View file

@ -29,6 +29,7 @@
#include "vm.h" #include "vm.h"
#include "scriptutil.h" #include "scriptutil.h"
#include "p_acs.h" #include "p_acs.h"
#include "actor.h"
static TArray<VMValue> parameters; static TArray<VMValue> parameters;