mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-02 15:32:19 +03:00
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:
@@ -7,8 +7,6 @@
|
|||||||
|
|
||||||
#include "FileSystemUtils.h"
|
#include "FileSystemUtils.h"
|
||||||
|
|
||||||
extern scriptclass script;
|
|
||||||
|
|
||||||
void updatebuttonmappings(int bind)
|
void updatebuttonmappings(int bind)
|
||||||
{
|
{
|
||||||
for (
|
for (
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
#include "Script.h"
|
#include "Script.h"
|
||||||
#include "Network.h"
|
#include "Network.h"
|
||||||
|
|
||||||
extern scriptclass script;
|
|
||||||
|
|
||||||
void titlelogic()
|
void titlelogic()
|
||||||
{
|
{
|
||||||
//Misc
|
//Misc
|
||||||
|
|||||||
@@ -10,8 +10,6 @@
|
|||||||
|
|
||||||
#include "MakeAndPlay.h"
|
#include "MakeAndPlay.h"
|
||||||
|
|
||||||
extern scriptclass script;
|
|
||||||
|
|
||||||
int tr;
|
int tr;
|
||||||
int tg;
|
int tg;
|
||||||
int tb;
|
int tb;
|
||||||
|
|||||||
@@ -64,4 +64,6 @@ public:
|
|||||||
std::vector <std::string> customscript;
|
std::vector <std::string> customscript;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern scriptclass script;
|
||||||
|
|
||||||
#endif /* SCRIPT_H */
|
#endif /* SCRIPT_H */
|
||||||
|
|||||||
@@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
extern scriptclass script;
|
|
||||||
|
|
||||||
void scriptclass::load(std::string t)
|
void scriptclass::load(std::string t)
|
||||||
{
|
{
|
||||||
//loads script name t into the array
|
//loads script name t into the array
|
||||||
|
|||||||
@@ -2072,8 +2072,6 @@ void fillboxabs( int x, int y, int x2, int y2, int c )
|
|||||||
|
|
||||||
extern editorclass ed;
|
extern editorclass ed;
|
||||||
|
|
||||||
extern scriptclass script;
|
|
||||||
|
|
||||||
void editorclass::generatecustomminimap()
|
void editorclass::generatecustomminimap()
|
||||||
{
|
{
|
||||||
map.customwidth=mapwidth;
|
map.customwidth=mapwidth;
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ struct LevelMetaData
|
|||||||
|
|
||||||
|
|
||||||
extern std::vector<edentities> edentity;
|
extern std::vector<edentities> edentity;
|
||||||
extern scriptclass script;
|
|
||||||
|
|
||||||
class EditorData
|
class EditorData
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user