aboutsummaryrefslogtreecommitdiff
path: root/games/q3cellshading/files/patch-code-unix-unix_shared.c
blob: 013c39f2bc13dad7d481651aecebd0fd057feefc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- code/unix/unix_shared.c.orig	Mon Aug 15 20:10:07 2005
+++ code/unix/unix_shared.c	Sun Nov 20 18:41:22 2005
@@ -38,7 +38,7 @@
 static char cdPath[MAX_OSPATH];
 
 // Used to determine local installation path
-static char installPath[MAX_OSPATH];
+static char installPath[MAX_OSPATH] = %%Q3DIR%%;
 
 // Used to determine where to store user-specific files
 static char homePath[MAX_OSPATH];
@@ -76,7 +76,7 @@
 	return curtime;
 }
 
-#if defined(__linux__) && !defined(DEDICATED)
+// #if defined(__linux__) && !defined(DEDICATED)
 /*
 ================
 Sys_XTimeToSysTime
@@ -98,11 +98,15 @@
 {
 	int ret, time, test;
 	
+	/*
+	Let's try to comment out this and see what will happen :-)
+	
 	if (!in_subframe->value)
 	{
 		// if you don't want to do any event times corrections
 		return Sys_Milliseconds();
 	}
+	*/
 
 	// test the wrap issue
 #if 0	
@@ -136,7 +140,7 @@
 
 	return ret;
 }
-#endif
+// #endif
 
 //#if 0 // bk001215 - see snapvector.nasm for replacement
 #if (defined __APPLE__) // rcg010206 - using this for PPC builds...