git repos / saland

commit f6175e02

Poul Sander · 2018-10-20 18:50
f6175e02deb13b6fa7b4b5c5ae1abc0ebb243652 patch · browse files
parent 622938d7ef74b91c9078bcd35827d7d5d512aabc

use VERSION_NUMBER from version.h

Changed files

M src/saland.cpp before
diff --git a/src/saland.cpp b/src/saland.cpp index 434381a..a4ec3bd 100644 --- a/src/saland.cpp +++ b/src/saland.cpp
@@ -47,13 +47,7 @@ https://github.com/sago007/saland
#include "common.h"
#include "os.hpp"
-
-
-#ifndef VERSIONNUMBER
-#define VERSIONNUMBER "0.1.0"
-#endif
-
-#define GAMENAME "saland_game"
+#include "version.h"
GlobalData globalData;
@@ -193,7 +187,7 @@ int main(int argc, char* argv[]) {
return 0;
}
if (vm.count("version")) {
- std::cout << "saland " << VERSIONNUMBER << "\n";
+ std::cout << "saland " << VERSION_NUMBER << "\n";
return 0;
}
runGame();