Skip to content

Commit

Permalink
Removed some unused externs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed Oct 17, 2024
1 parent 2282e93 commit 6bdd2ef
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
6 changes: 2 additions & 4 deletions src/common/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@ using std::endl;
#endif


extern gfxSprite spr_frontmap[2];

short g_iCurrentDrawIndex = 0;


extern SDL_Surface* screen;
extern SDL_Surface* blitdest;

Expand All @@ -63,7 +60,8 @@ SDL_Rect g_rFlameRects[4][4] = { { {0, 0, 96, 32}, {0, 32, 96, 32}, {0, 64, 96,
};

//[Type][Direction][Frame]
SDL_Rect g_rPirhanaRects[4][4][4] = { { { {0, 0, 32, 48}, {32, 0, 32, 48}, {64, 0, 32, 48}, {96, 0, 32, 48} },
SDL_Rect g_rPirhanaRects[4][4][4] = {
{ { {0, 0, 32, 48}, {32, 0, 32, 48}, {64, 0, 32, 48}, {96, 0, 32, 48} },
{ {128, 0, 32, 48}, {160, 0, 32, 48}, {192, 0, 32, 48}, {224, 0, 32, 48} },
{ {304, 0, 48, 32}, {304, 32, 48, 32}, {304, 64, 48, 32}, {304, 96, 48, 32} },
{ {304, 128, 48, 32}, {304, 160, 48, 32}, {304, 192, 48, 32}, {304, 224, 48, 32} }
Expand Down
5 changes: 0 additions & 5 deletions src/smw/GSMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ extern bool g_fRecordTest;

extern void SetGameModeSettingsFromMenu();
extern void LoadMapObjects(bool fPreview);
extern bool LoadGameSounds();

extern void UpdateScoreBoard();

extern short LookupTeamID(short id);

extern WorldMap g_worldmap;
Expand All @@ -90,8 +87,6 @@ extern CMap* g_map;
extern CScore *score[4];
extern short score_cnt;

extern std::string stripPathAndExtension(const std::string &path);

extern CGameMode * gamemodes[GAMEMODE_LAST];
extern CGM_Bonus * bonushousemode;
extern CGM_Pipe_MiniGame * pipegamemode;
Expand Down
6 changes: 0 additions & 6 deletions src/smw/objects/moving/MO_CheepCheep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,3 @@ void MO_CheepCheep::ShatterDie()

game_values.unlocksecret2part2++;
}

///////////////////////DEBUG! REMOVE THIS WHEN DONE/////////////////////////////
#ifdef _DEBUG
extern bool fDebugShowBossSettings;
#endif
///////////////////////DEBUG! REMOVE THIS WHEN DONE/////////////////////////////
2 changes: 0 additions & 2 deletions src/smw/world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

WorldMap g_worldmap(0, 0);

extern std::string stripPathAndExtension(const std::string &path);

extern SDL_Surface* blitdest;

extern CGameValues game_values;
Expand Down

0 comments on commit 6bdd2ef

Please sign in to comment.