Skip to content

Commit

Permalink
Removed some unused global code
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed Apr 6, 2024
1 parent 572b9d4 commit c546308
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/common/ObjectBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include "GlobalConstants.h"
#include "map.h"

extern int g_iNextNetworkID;

extern CMap* g_map;

float CapFallingVelocity(float vel)
Expand Down Expand Up @@ -51,8 +49,6 @@ CObject::CObject(gfxSprite *nspr1, short x, short y)
collisionHeight = ih;
collisionOffsetX = 0;
collisionOffsetY = 0;

iNetworkID = g_iNextNetworkID++;
}

/*
Expand Down
6 changes: 0 additions & 6 deletions src/common/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "gfx.h"
#include "map.h"
#include "MapList.h"
#include "MovingObjectTypes.h"
#include "ResourceManager.h"
#include "TilesetManager.h"

Expand Down Expand Up @@ -101,11 +100,6 @@ CTilesetManager *g_tilesetmanager;

bool g_fLoadMessages = true;

//Network stuff
int g_iNextNetworkID = 0;
int g_iNextMessageID = 0;
char szIPString[32] = "";

//Joystick-Init
SDL_Joystick **joysticks = NULL;
short joystickcount = 0;
Expand Down

0 comments on commit c546308

Please sign in to comment.