Clean up all scriptclass externs into one location

I have the feeling that none of the devs understood what extern did, and
they kind of just sprinkled it everywhere until things started working.
But like all other classes, it should just be one line in the class's
respective header file, and shouldn't be so messy.
This commit is contained in:
Misa
2020-05-18 10:12:11 -07:00
committed by Ethan Lee
parent 7afe206a0d
commit 3a5dd5a616
7 changed files with 2 additions and 11 deletions

View File

@@ -7,8 +7,6 @@
#include "FileSystemUtils.h"
extern scriptclass script;
void updatebuttonmappings(int bind)
{
for (

View File

@@ -2,8 +2,6 @@
#include "Script.h"
#include "Network.h"
extern scriptclass script;
void titlelogic()
{
//Misc

View File

@@ -10,8 +10,6 @@
#include "MakeAndPlay.h"
extern scriptclass script;
int tr;
int tg;
int tb;

View File

@@ -64,4 +64,6 @@ public:
std::vector <std::string> customscript;
};
extern scriptclass script;
#endif /* SCRIPT_H */

View File

@@ -5,8 +5,6 @@
#include <algorithm>
extern scriptclass script;
void scriptclass::load(std::string t)
{
//loads script name t into the array

View File

@@ -2072,8 +2072,6 @@ void fillboxabs( int x, int y, int x2, int y2, int c )
extern editorclass ed;
extern scriptclass script;
void editorclass::generatecustomminimap()
{
map.customwidth=mapwidth;

View File

@@ -46,7 +46,6 @@ struct LevelMetaData
extern std::vector<edentities> edentity;
extern scriptclass script;
class EditorData
{