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 Jul 17, 2021
1 parent d07ba42 commit 7619985
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions neo/d3xp/GameEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,8 @@ void idEditEntities::DisplayEntities( void ) {
===============================================================================
*/

idGameEditExt gameEditLocal;
idGameEdit * gameEdit = &gameEditLocal;
idGameEditExt 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 @@ -126,7 +126,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 @@ -397,7 +397,7 @@ class idGameEdit : public idGameEditBase {
virtual void MapEntityTranslate( const char *name, const idVec3 &v ) const;
};

extern idGameEdit * gameEdit;
extern idGameEditBase * gameEdit;

// In game script Debugging Support
class idGameEditExt : public idGameEdit {
Expand Down Expand Up @@ -467,7 +467,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
4 changes: 2 additions & 2 deletions neo/game/GameEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,8 @@ void idEditEntities::DisplayEntities( void ) {
===============================================================================
*/

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


/*
Expand Down

0 comments on commit 7619985

Please sign in to comment.