-namespace Game{
- GLuint terraintexture;
- GLuint terraintexture2;
- GLuint terraintexture3;
- GLuint screentexture;
- GLuint screentexture2;
- GLuint logotexture;
- GLuint loadscreentexture;
- GLuint Maparrowtexture;
- GLuint Mapboxtexture;
- GLuint Mapcircletexture;
- GLuint cursortexture;
- GLuint Mainmenuitems[10];
-
- int selected;
- int keyselect;
- int indemo;
-
- bool won;
-
- bool entername;
-
- char registrationname[256];
- float registrationnumber;
-
- int newdetail;
- int newscreenwidth;
- int newscreenheight;
-
- bool gameon;
- float deltah,deltav;
- int mousecoordh,mousecoordv;
- int oldmousecoordh,oldmousecoordv;
- float rotation,rotation2;
- SkyBox skybox;
- bool cameramode;
- int olddrawmode;
- int drawmode;
- bool firstload;
- bool oldbutton;
-
- float leveltime;
- float loadtime;
-
- Model hawk;
- XYZ hawkcoords;
- XYZ realhawkcoords;
- GLuint hawktexture;
- float hawkrotation;
- float hawkcalldelay;
-
- Model eye;
- Model iris;
- Model cornea;
-
- bool stealthloading;
-
- std::vector<CampaignLevel> campaignlevels;
- int whichchoice;
- int actuallevel;
- bool winhotspot;
- bool windialogue;
-
- bool minimap;
-
- int musictype,oldmusictype,oldoldmusictype;
- bool realthreat;
-
- Model rabbit;
- XYZ rabbitcoords;
-
- XYZ mapcenter;
- float mapradius;
-
- Text* text;
- float fps;
-
- XYZ cameraloc;
- float cameradist;
-
- int drawtoggle;
-
- bool editorenabled;
- int editortype;
- float editorsize;
- float editorrotation;
- float editorrotation2;
-
- float brightness;
-
- int quit;
- int tryquit;
-
- XYZ pathpoint[30];
- int numpathpoints;
- int numpathpointconnect[30];
- int pathpointconnect[30][30];
- int pathpointselected;
-
- int endgame;
- bool scoreadded;
- int numchallengelevels;
-
- bool console;
- int archiveselected;
- char consoletext[15][256];
- int consolechars[15];
- bool chatting;
- char displaytext[15][256];
- int displaychars[15];
- float displaytime[15];
- float displayblinkdelay;
- bool displayblink;
- int displayselected;
- bool consolekeydown;
- float consoleblinkdelay;
- bool consoleblink;
- int consoleselected;
- bool autocam;
-
- unsigned short crouchkey,jumpkey,forwardkey,chatkey,backkey,leftkey,rightkey,drawkey,throwkey,attackkey;
- unsigned short consolekey;
- bool oldattackkey;
-
- int loading;
- float talkdelay;
-
- int numboundaries;
- XYZ boundary[360];
-
- int whichlevel;
- int oldenvironment;
- int targetlevel;
- float changedelay;
-
- float musicvolume[4];
- float oldmusicvolume[4];
- int musicselected;
- int change;
-
- bool waiting;
- Account* accountactive;
+namespace Game
+{
+Texture terraintexture;
+Texture terraintexture2;
+Texture loadscreentexture;
+Texture Maparrowtexture;
+Texture Mapboxtexture;
+Texture Mapcircletexture;
+Texture cursortexture;
+GLuint screentexture = 0;
+GLuint screentexture2 = 0;
+Texture Mainmenuitems[10];
+
+int selected = 0;
+int keyselect = 0;
+
+int newdetail = 0;
+int newscreenwidth = 0;
+int newscreenheight = 0;
+
+bool gameon = 0;
+float deltah = 0;
+float deltav = 0;
+int mousecoordh = 0;
+int mousecoordv = 0;
+int oldmousecoordh = 0;
+int oldmousecoordv = 0;
+float yaw = 0;
+float pitch = 0;
+SkyBox *skybox = NULL;
+bool cameramode = 0;
+bool firstload = 0;
+
+Texture hawktexture;
+float hawkyaw = 0;
+float hawkcalldelay = 0;
+float leveltime = 0;
+float loadtime = 0;
+
+Model hawk;
+XYZ hawkcoords;
+XYZ realhawkcoords;
+
+Model eye;
+Model iris;
+Model cornea;
+
+bool stealthloading = 0;
+
+int musictype = 0;
+
+XYZ mapcenter;
+float mapradius = 0;
+
+Text *text = NULL;
+float fps = 0;
+
+bool editorenabled = 0;
+int editortype = 0;
+float editorsize = 0;
+float editoryaw = 0;
+float editorpitch = 0;
+
+int tryquit = 0;
+
+XYZ pathpoint[30];
+int numpathpoints = 0;
+int numpathpointconnect[30] = {};
+int pathpointconnect[30][30] = {};
+int pathpointselected = 0;
+
+int endgame = 0;
+bool scoreadded = 0;
+int numchallengelevels = 0;
+
+bool console = false;
+std::string consoletext[15] = {};
+std::string displaytext[15] = {};
+float displaytime[15] = {};
+float displayblinkdelay = 0;
+bool displayblink = 0;
+int displayselected = 0;
+float consoleblinkdelay = 0;
+bool consoleblink = 0;
+int consoleselected = 0;
+
+unsigned short crouchkey = 0, jumpkey = 0, forwardkey = 0, backkey = 0, leftkey = 0, rightkey = 0, drawkey = 0, throwkey = 0, attackkey = 0;
+unsigned short consolekey = 0;
+
+int loading = 0;
+
+int oldenvironment = 0;
+int targetlevel = 0;
+float changedelay = 0;
+
+bool waiting = false;
+Account* accountactive = NULL;