Skip to content

Commit

Permalink
Store gameEdit as idGameEditBase
Browse files Browse the repository at this point in the history
  • Loading branch information
turol committed Apr 13, 2021
1 parent 772566f commit 142b45f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion neo/d3xp/GameEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ void idEditEntities::DisplayEntities( void ) {
*/

idGameEdit gameEditLocal;
idGameEdit * gameEdit = &gameEditLocal;
idGameEditBase * gameEdit = &gameEditLocal;


/*
Expand Down
2 changes: 1 addition & 1 deletion neo/framework/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ unsigned int com_msgID = -1;

#ifdef __DOOM_DLL__
idGame * game = NULL;
idGameEdit * gameEdit = NULL;
idGameEditBase * gameEdit = NULL;
#endif

// writes si_version to the config file - in a kinda obfuscated way
Expand Down
4 changes: 2 additions & 2 deletions neo/framework/Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class idGameEdit : public idGameEditBase {

};

extern idGameEdit * gameEdit;
extern idGameEditBase * gameEdit;


/*
Expand Down Expand Up @@ -428,7 +428,7 @@ typedef struct {

int version; // API version
idGame * game; // interface to run the game
idGameEdit * gameEdit; // interface for in-game editing
idGameEditBase * gameEdit; // interface for in-game editing

} gameExport_t;

Expand Down
2 changes: 1 addition & 1 deletion neo/game/GameEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ void idEditEntities::DisplayEntities( void ) {
*/

idGameEdit gameEditLocal;
idGameEdit * gameEdit = &gameEditLocal;
idGameEditBase * gameEdit = &gameEditLocal;


/*
Expand Down

0 comments on commit 142b45f

Please sign in to comment.