[General] Housekeeping stuff and a NPE fix

This commit is contained in:
TheApadayo
2017-02-06 15:09:41 -05:00
parent 547fec18bd
commit d524092944
7 changed files with 21 additions and 18 deletions

View File

@ -508,7 +508,8 @@ namespace Game
}
}
void MessageBox(std::string message, std::string title)
// this cant be MessageBox because windows.h has a define that converts it to MessageBoxW. which is just stupid
void ShowMessageBox(std::string message, std::string title)
{
if (!Game::CL_IsCgameInitialized())
{

View File

@ -719,7 +719,7 @@ namespace Game
void FS_AddLocalizedGameDirectory(const char *path, const char *dir);
void MessageBox(std::string message, std::string title);
void ShowMessageBox(std::string message, std::string title);
unsigned int R_HashString(const char* string);
void R_LoadSunThroughDvars(const char* mapname, sunflare_t* sun);