r1473 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Oct 24 03:02:41 EDT 2008


Author: ludwig
Date: 2008-10-24 03:02:35 -0400 (Fri, 24 Oct 2008)
New Revision: 1473

Modified:
   trunk/code/client/cl_cin.c
Log:
fix crash with videos on ppc (#2523,3802). Patch by Przemys?\197?\130aw Iskra

Modified: trunk/code/client/cl_cin.c
===================================================================
--- trunk/code/client/cl_cin.c	2008-09-16 21:05:22 UTC (rev 1472)
+++ trunk/code/client/cl_cin.c	2008-10-24 07:02:35 UTC (rev 1473)
@@ -1193,8 +1193,8 @@
 	cinTable[currentHandle].roq_id		 = framedata[0] + framedata[1]*256;
 	cinTable[currentHandle].RoQFrameSize = framedata[2] + framedata[3]*256 + framedata[4]*65536;
 	cinTable[currentHandle].roq_flags	 = framedata[6] + framedata[7]*256;
-	cinTable[currentHandle].roqF0		 = (char)framedata[7];
-	cinTable[currentHandle].roqF1		 = (char)framedata[6];
+	cinTable[currentHandle].roqF0		 = (signed char)framedata[7];
+	cinTable[currentHandle].roqF1		 = (signed char)framedata[6];
 
 	if (cinTable[currentHandle].RoQFrameSize>65536||cinTable[currentHandle].roq_id==0x1084) {
 		Com_DPrintf("roq_size>65536||roq_id==0x1084\n");




More information about the quake3-commits mailing list