Support pre-C++11 compilers

This commit is contained in:
Matt Penny
2020-02-11 00:34:01 -05:00
committed by Ethan Lee
parent 9adcbaed6c
commit e7252888b6
3 changed files with 8 additions and 1 deletions

View File

@@ -19,6 +19,11 @@
#include "GraphicsUtil.h" #include "GraphicsUtil.h"
#include "Screen.h" #include "Screen.h"
#if __cplusplus < 201103L // Pre-C++11
typedef uint32_t char32_t;
typedef uint16_t char16_t;
#endif
class map; class map;
class Graphics class Graphics

View File

@@ -355,6 +355,8 @@ void editorclass::reset()
hookmenu=0; hookmenu=0;
numhooks=0; numhooks=0;
script.customscript.clear(); script.customscript.clear();
returneditoralpha = 0;
} }
void editorclass::weirdloadthing(std::string t) void editorclass::weirdloadthing(std::string t)

View File

@@ -237,7 +237,7 @@ class editorclass{
int dmtile; int dmtile;
int dmtileeditor; int dmtileeditor;
int returneditoralpha = 0; int returneditoralpha;
}; };
void addedentity(int xp, int yp, int tp, int p1=0, int p2=0, int p3=0, int p4=0, int p5=320, int p6=240); void addedentity(int xp, int yp, int tp, int p1=0, int p2=0, int p3=0, int p4=0, int p5=320, int p6=240);