aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-30 22:38:59 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-30 22:38:59 +0000
commit2d18192eaf57af256061ffa0080868309fffe950 (patch)
tree0c878c290a33f7aba1b6e6ccfb0fae78934f0624 /code
parent9703e96acb91d3ca178d3591ef67f1546a8f19c0 (diff)
downloadioquake3-aero-2d18192eaf57af256061ffa0080868309fffe950.tar.gz
ioquake3-aero-2d18192eaf57af256061ffa0080868309fffe950.zip
- add note about 64bit mods and the demo
- fix mod functions for 64bit git-svn-id: svn://svn.icculus.org/quake3/trunk@37 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/cgame/cg_syscalls.c4
-rw-r--r--code/game/g_syscalls.c4
-rw-r--r--code/qcommon/vm.c2
-rw-r--r--code/ui/ui_syscalls.c4
4 files changed, 8 insertions, 6 deletions
diff --git a/code/cgame/cg_syscalls.c b/code/cgame/cg_syscalls.c
index 3c1efa0..a03068e 100644
--- a/code/cgame/cg_syscalls.c
+++ b/code/cgame/cg_syscalls.c
@@ -28,10 +28,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "cg_local.h"
-static long (QDECL *syscall)( int arg, ... ) = (long (QDECL *)( int, ...))-1;
+static long (QDECL *syscall)( long arg, ... ) = (long (QDECL *)( long, ...))-1;
-void dllEntry( long (QDECL *syscallptr)( int arg,... ) ) {
+void dllEntry( long (QDECL *syscallptr)( long arg,... ) ) {
syscall = syscallptr;
}
diff --git a/code/game/g_syscalls.c b/code/game/g_syscalls.c
index 0e7c8cd..256a1c8 100644
--- a/code/game/g_syscalls.c
+++ b/code/game/g_syscalls.c
@@ -28,10 +28,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#error "Do not use in VM build"
#endif
-static int (QDECL *syscall)( int arg, ... ) = (int (QDECL *)( int, ...))-1;
+static long (QDECL *syscall)( long arg, ... ) = (long (QDECL *)( long, ...))-1;
-void dllEntry( int (QDECL *syscallptr)( int arg,... ) ) {
+void dllEntry( long (QDECL *syscallptr)( long arg,... ) ) {
syscall = syscallptr;
}
diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c
index 713e6ae..87f0795 100644
--- a/code/qcommon/vm.c
+++ b/code/qcommon/vm.c
@@ -716,8 +716,10 @@ long QDECL VM_Call( vm_t *vm, long callnum, ... ) {
args[4], args[5], args[6], args[7],
args[8], args[9], args[10], args[11],
args[12], args[13], args[14], args[15]);
+#if defined(HAVE_VM_COMPILED)
} else if ( vm->compiled ) {
r = VM_CallCompiled( vm, &callnum );
+#endif
} else {
struct {
int callnum;
diff --git a/code/ui/ui_syscalls.c b/code/ui/ui_syscalls.c
index 7240c2b..2ed6712 100644
--- a/code/ui/ui_syscalls.c
+++ b/code/ui/ui_syscalls.c
@@ -28,9 +28,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#error "Do not use in VM build"
#endif
-static int (QDECL *syscall)( int arg, ... ) = (int (QDECL *)( int, ...))-1;
+static long (QDECL *syscall)( long arg, ... ) = (long (QDECL *)( long, ...))-1;
-void dllEntry( int (QDECL *syscallptr)( int arg,... ) ) {
+void dllEntry( long (QDECL *syscallptr)( long arg,... ) ) {
syscall = syscallptr;
}