From d598616f5fc3db9b4f13b72da3deb847bd34aae2 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 12 Jan 2006 22:21:00 +0000 Subject: [PATCH] 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 --- engine/client/cl_ui.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_ui.c b/engine/client/cl_ui.c index 10b821404..9e57fbc0e 100644 --- a/engine/client/cl_ui.c +++ b/engine/client/cl_ui.c @@ -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)