mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
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:
parent
4abdf3cd0d
commit
d598616f5f
1 changed files with 8 additions and 2 deletions
|
@ -1263,13 +1263,19 @@ long UI_SystemCallsEx(void *offset, unsigned int mask, int fn, const long *arg)
|
|||
if (!Draw_SafeCachePic)
|
||||
VM_LONG(ret) = 0;
|
||||
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;
|
||||
case UI_PICFROMWAD:
|
||||
if (!Draw_SafePicFromWad)
|
||||
VM_LONG(ret) = 0;
|
||||
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;
|
||||
case UI_GETPLAYERINFO:
|
||||
if (arg[1] + sizeof(vmuiclientinfo_t) >= mask || VM_POINTER(arg[1]) < offset)
|
||||
|
|
Loading…
Reference in a new issue