1
0
Fork 0
forked from fte/fteqw

Fix for file indexes -> qhandle_t

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1699 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-12-12 02:10:36 +00:00
parent 0ed3044f0f
commit 68e3900c50

View file

@ -635,6 +635,8 @@ void Hud_HealthPic(void)
hl = 4; hl = 4;
if (hl < 0) if (hl < 0)
hl = 0; hl = 0;
//FIXME
// if (innpain) // if (innpain)
// UI_DrawPic(pic_facep[4-hl], 0, 0, 24, 24); // UI_DrawPic(pic_facep[4-hl], 0, 0, 24, 24);
// else // else
@ -899,13 +901,13 @@ int UI_StatusBarEdit(int *arg) // seperated so further improvements to editor vi
} }
#define HUD_VERSION 52345 #define HUD_VERSION 52345
void PutFloat(float f, char sep, int handle) void PutFloat(float f, char sep, qhandle_t handle)
{ {
char *buffer; char *buffer;
buffer = va("%f%c", f, sep); buffer = va("%f%c", f, sep);
FS_Write(handle, buffer, strlen(buffer)); FS_Write(handle, buffer, strlen(buffer));
} }
void PutInteger(int i, char sep, int handle) void PutInteger(int i, char sep, qhandle_t handle)
{ {
char *buffer; char *buffer;
buffer = va("%i%c", i, sep); buffer = va("%i%c", i, sep);
@ -915,7 +917,7 @@ void PutInteger(int i, char sep, int handle)
void Hud_Save(char *fname) void Hud_Save(char *fname)
{ {
int i; int i;
int handle; qhandle_t handle;
if (!*fname) if (!*fname)
fname = DEFAULTHUDNAME; fname = DEFAULTHUDNAME;
if (FS_Open(fname, &handle, 2)<0) if (FS_Open(fname, &handle, 2)<0)
@ -939,7 +941,7 @@ void Hud_Save(char *fname)
FS_Close(handle); FS_Close(handle);
} }
float GetFloat(char **f, int handle) float GetFloat(char **f, qhandle_t handle)
{ {
char *ts; char *ts;
while(**f <= ' ' && **f != 0) while(**f <= ' ' && **f != 0)
@ -957,7 +959,7 @@ float GetFloat(char **f, int handle)
return (float)atof(ts); return (float)atof(ts);
} }
int GetInteger(char **f, int handle) int GetInteger(char **f, qhandle_t handle)
{ {
char *ts; char *ts;
while(**f <= ' ' && **f != 0) while(**f <= ' ' && **f != 0)
@ -981,7 +983,7 @@ void Hud_Load(char *fname)
char *p; char *p;
int len; int len;
int i; int i;
int handle; qhandle_t handle;
int ver; int ver;
float x, y, sx, sy, a; float x, y, sx, sy, a;