summaryrefslogtreecommitdiff
blob: 5dcccd76049b2854b743fa9dc03095c5d4f8f5e1 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
diff -ur wolfgl-0.93-orig/common/id_ca.c wolfgl-0.93/common/id_ca.c
--- wolfgl-0.93-orig/common/id_ca.c	2006-01-28 16:59:10.000000000 -0500
+++ wolfgl-0.93/common/id_ca.c	2006-01-28 17:04:26.000000000 -0500
@@ -252,6 +252,7 @@
 {
 	unsigned short ch,chhigh,count,offset;
 	unsigned short *copyptr, *inptr, *outptr;
+	unsigned char *uc_inptr;
 
 	length/=2;
 
@@ -268,13 +269,17 @@
 			if (!count)
 			{
 				// have to insert a word containing the tag byte
-				ch |= *((unsigned char*)inptr)++;
+				uc_inptr = (unsigned char*)inptr;
+				ch |= *(uc_inptr)++;
+				inptr = (unsigned short *)uc_inptr;
 				*outptr++ = ch;
 				length--;
 			}
 			else
 			{
-				offset = *((unsigned char*)inptr)++;
+				uc_inptr = (unsigned char*)inptr;
+				offset = *(uc_inptr)++;
+				inptr = (unsigned short *)uc_inptr;
 				copyptr = outptr - offset;
 				length -= count;
 				while (count--)
@@ -287,7 +292,9 @@
 			if (!count)
 			{
 				// have to insert a word containing the tag byte
-				ch |= *((unsigned char*)inptr)++;
+				uc_inptr = (unsigned char*)inptr;
+				ch |= *(uc_inptr)++;
+				inptr = (unsigned short *)uc_inptr;
 				*outptr++ = ch;
 				length --;
 			}
@@ -806,7 +813,7 @@
 
 	for (i=0;i<NUMCHUNKS;i++)
 		if (grsegs[i])
-			MM_SetPurge (&(memptr)grsegs[i],3);
+			MM_SetPurge ((memptr)&grsegs[i],3);
 	ca_levelbit<<=1;
 	ca_levelnum++;
 }
@@ -862,7 +869,7 @@
 
 	for (i = 0; i < NUMCHUNKS; i++)
 		if (grsegs[i])
-			MM_SetPurge (&(memptr)grsegs[i],3);
+			MM_SetPurge ((memptr)&grsegs[i],3);
 }
 
 //===========================================================================
diff -ur wolfgl-0.93-orig/common/wl_game.c wolfgl-0.93/common/wl_game.c
--- wolfgl-0.93-orig/common/wl_game.c	2006-01-28 16:59:10.000000000 -0500
+++ wolfgl-0.93/common/wl_game.c	2006-01-28 17:07:08.000000000 -0500
@@ -545,13 +545,13 @@
 			{
 				// solid wall
 				tilemap[x][y] = tile;
-				(unsigned short)actorat[x][y] = tile;
+				actorat[x][y] = tile;
 			}
 			else
 			{
 				// area floor
 				tilemap[x][y] = 0;
-				(unsigned short)actorat[x][y] = 0;
+				actorat[x][y] = 0;
 			}
 		}