1
0
Fork 0
forked from fte/fteqw

gets the old h2ui to work again (without crashing)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1851 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-01-12 22:21:00 +00:00
parent 4abdf3cd0d
commit d598616f5f

View file

@ -1263,13 +1263,19 @@ long UI_SystemCallsEx(void *offset, unsigned int mask, int fn, const long *arg)
if (!Draw_SafeCachePic) if (!Draw_SafeCachePic)
VM_LONG(ret) = 0; VM_LONG(ret) = 0;
else else
VM_LONG(ret) = (long)Draw_SafeCachePic(VM_POINTER(arg[0])); {
/*VM_LONG(ret) = (long)*/Draw_SafeCachePic(VM_POINTER(arg[0]));
VM_LONG(ret) = (long)R_RegisterPic(VM_POINTER(arg[0]));
}
break; break;
case UI_PICFROMWAD: case UI_PICFROMWAD:
if (!Draw_SafePicFromWad) if (!Draw_SafePicFromWad)
VM_LONG(ret) = 0; VM_LONG(ret) = 0;
else else
VM_LONG(ret) = (long)Draw_SafePicFromWad(VM_POINTER(arg[0])); {
/*VM_LONG(ret) = (long)*/Draw_SafePicFromWad(VM_POINTER(arg[0]));
VM_LONG(ret) = (long)R_RegisterPic(VM_POINTER(arg[0]));
}
break; break;
case UI_GETPLAYERINFO: case UI_GETPLAYERINFO:
if (arg[1] + sizeof(vmuiclientinfo_t) >= mask || VM_POINTER(arg[1]) < offset) if (arg[1] + sizeof(vmuiclientinfo_t) >= mask || VM_POINTER(arg[1]) < offset)