From 17144eaf9e6f0cea930192fb4d3e118e6f5c01a7 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 30 Nov 2005 01:06:02 +0000 Subject: [PATCH] Uses FS builtins, so no hardcoded filesystem stuff, so it compiles as a QVM. That load/save bug is also gone. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1632 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- plugins/hud/ui_sbar.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/hud/ui_sbar.c b/plugins/hud/ui_sbar.c index 4f917c3ca..27e67a457 100644 --- a/plugins/hud/ui_sbar.c +++ b/plugins/hud/ui_sbar.c @@ -982,6 +982,7 @@ void Hud_Load(char *fname) int len; int i; int handle; + int ver; float x, y, sx, sy, a; int type, subtype; @@ -1002,9 +1003,10 @@ void Hud_Load(char *fname) p = file; - if (GetInteger(&p, handle) != HUD_VERSION) + ver = GetInteger(&p, handle); + if (ver != HUD_VERSION) { - Con_Printf("Hud version doesn't match\n"); + Con_Printf("Hud version doesn't match (%i != %i)\n", ver, HUD_VERSION); return; } numelements = GetInteger(&p, handle);