Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:RedDwarf:multimedia:games
funguloids
iso-cpp.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File iso-cpp.patch of Package funguloids
diff --git a/include/hiscore.h b/include/hiscore.h index e9783ff..14ca4b4 100644 --- a/include/hiscore.h +++ b/include/hiscore.h @@ -50,7 +50,7 @@ public: void clear(); // Clear the list void sort(); // Sort the list - int addName(char *name, long score); // Add a record + int addName(const char *name, long score); // Add a record void save(const String &file); // Save the list void load(const String &file); // Load the list void updateOverlay(); // Update the overlay diff --git a/src/hiscore.cpp b/src/hiscore.cpp index cf6903e..27e95c7 100644 --- a/src/hiscore.cpp +++ b/src/hiscore.cpp @@ -171,7 +171,7 @@ void HiscoreList::load(const String &file) { // Add a name to the list. Returns the place. -int HiscoreList::addName(char *name, long score) { +int HiscoreList::addName(const char *name, long score) { // Check if we qualify if(mList[NUM_NAMES-1].score >= score) return -1; diff --git a/src/ogrelistener.cpp b/src/ogrelistener.cpp index 05956da..7beebd8 100644 --- a/src/ogrelistener.cpp +++ b/src/ogrelistener.cpp @@ -127,7 +127,7 @@ OgreAppFrameListener::OgreAppFrameListener(OgreApplication *app, RenderWindow *w // Show debug info? - if(GameApplication::mGameConfig->GetValue("graphics", "debug_info", "off") == "on") { + if(strcmp(GameApplication::mGameConfig->GetValue("graphics", "debug_info", "off"), "on") == 0) { showDebugOverlay(true); mStatsOn = true; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor