r3841 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jul 15 06:33:05 EDT 2008


Author: blub0
Date: 2008-07-15 06:33:03 -0400 (Tue, 15 Jul 2008)
New Revision: 3841

Modified:
   trunk/data/qcsrc/client/Main.qc
Log:
Using #pragma TARGET id instead of asm blocks :)

Modified: trunk/data/qcsrc/client/Main.qc
===================================================================
--- trunk/data/qcsrc/client/Main.qc	2008-07-15 09:51:11 UTC (rev 3840)
+++ trunk/data/qcsrc/client/Main.qc	2008-07-15 10:33:03 UTC (rev 3841)
@@ -17,7 +17,9 @@
 // let's make this a general data buffer...
 float using_gps;
 
+#ifdef USE_FTE
 float __engine_check;
+#endif
 
 void CSQC_Init(void)
 {
@@ -31,8 +33,6 @@
 		return;
 	}
 #pragma target FTE
-#else
-	__engine_check = true;
 #endif
 	
 	float i;
@@ -69,10 +69,12 @@
 // CSQC_Shutdown : Called every time the CSQC code is shutdown (changing maps, quitting, etc)
 void CSQC_Shutdown(void)
 {
-	asm {
-		IF __engine_check 2;
-		RETURN 0;
-	}
+#ifdef USE_FTE
+#pragma TARGET id
+	if(!__engine_check)
+		return 0;
+#pragma TARGET fte
+#endif
 	buf_del(databuf);
 }
 




More information about the nexuiz-commits mailing list