diff --git a/resources/VERSION b/resources/VERSION
deleted file mode 100644
index f4caccc..0000000
--- a/resources/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-v0.1.2
\ No newline at end of file
diff --git a/src/common.h b/src/common.h
index 08f75ea..3e10cfa 100644
--- a/src/common.h
+++ b/src/common.h
@@ -17,6 +17,8 @@
along with BetterSpades. If not, see .
*/
+#define BETTERSPADES_VERSION "v0.1.2"
+
#if __APPLE__
#include
#include
diff --git a/src/hud.c b/src/hud.c
index af8b71a..0d152e0 100644
--- a/src/hud.c
+++ b/src/hud.c
@@ -1379,11 +1379,9 @@ static void hud_serverlist_render(float scalex, float scaley) {
switch(http_process(request_version)) {
case HTTP_STATUS_COMPLETED:
serverlist_is_outdated = 1;
- char* v = file_load("VERSION");
printf("newest game version: %s\n",request_version->response_data);
- printf("current game version: %s\n",v);
- serverlist_is_outdated = strcmp(request_version->response_data,v)!=0;
- free(v);
+ printf("current game version: %s\n",BETTERSPADES_VERSION);
+ serverlist_is_outdated = strcmp(request_version->response_data,BETTERSPADES_VERSION)!=0;
http_release(request_version);
request_version = NULL;
break;
diff --git a/src/main.c b/src/main.c
index 7693096..9a3f5c9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -525,7 +525,7 @@ int main(int argc, char** argv) {
glfwWindowHint(GLFW_SAMPLES,settings.multisamples);
}
- GLFWwindow* window = glfwCreateWindow(settings.window_width,settings.window_height,"BetterSpades",settings.fullscreen?glfwGetPrimaryMonitor():NULL,NULL);
+ GLFWwindow* window = glfwCreateWindow(settings.window_width,settings.window_height,"BetterSpades "BETTERSPADES_VERSION,settings.fullscreen?glfwGetPrimaryMonitor():NULL,NULL);
if(!window) {
printf("Could not open window\n");
glfwTerminate();