[quake3] Re: Running q3ded on PPC

Ludwig Nussel ludwig.nussel at suse.de
Sat Oct 29 08:18:44 EDT 2005


PaSzCzUs wrote:
> Well, the client is works fine, but dedicated server not...
> The same problem is on sparc (32bit)

Hmm...
- both are big endian
- the dedicated server is probably for historical reasons compiled
  with -DC_ONLY
- idppc is only defined if !C_ONLY

try this:

Index: code/qcommon/vm_interpreted.c
===================================================================
--- code/qcommon/vm_interpreted.c	(Revision 192)
+++ code/qcommon/vm_interpreted.c	(Arbeitskopie)
@@ -124,7 +124,7 @@
 	#define loadWord(addr) __lwbrx(addr,0)
     #endif
 #else
-	#define	loadWord(addr) *((int *)addr)
+	#define	loadWord(addr) LittleLong(*((int *)addr))
 #endif
 
 char *VM_Indent( vm_t *vm ) {


cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX Products GmbH, Development
 V_/_  http://www.suse.de/





More information about the quake3 mailing list