1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00

Remove unused option

This commit is contained in:
Daniel Evans 2014-08-11 20:09:56 +01:00
parent 5aaead1974
commit ed38fb48fc

View File

@ -197,7 +197,7 @@ void handleCommandEvent(sf::Event &event)
}
}
void init(std::string gtapath, bool loadWorld)
void init(std::string gtapath)
{
// GTA GET
gta = new GameWorld(gtapath);
@ -444,10 +444,9 @@ int main(int argc, char *argv[])
glewExperimental = GL_TRUE;
glewInit();
bool loadWorld = true;
size_t w = WIDTH, h = HEIGHT;
int c;
while( (c = getopt(argc, argv, "w:h:l")) != -1) {
while( (c = getopt(argc, argv, "w:h:")) != -1) {
switch(c) {
case 'w':
w = atoi(optarg);
@ -455,9 +454,6 @@ int main(int argc, char *argv[])
case 'h':
h = atoi(optarg);
break;
case 'l':
loadWorld = false;
break;
}
}
@ -467,7 +463,7 @@ int main(int argc, char *argv[])
window.setVerticalSyncEnabled(true);
window.setMouseCursorVisible(false);
init(getGamePath(), loadWorld);
init(getGamePath());
sf::Clock clock;