(svn r1674) - Fix: Signs are now displayed in the correct color at all zoom levels
authordominik
Tue, 25 Jan 2005 20:47:02 +0000
changeset 1172 ef009694695c
parent 1171 ec151f9a7238
child 1173 b4c6bb0e16ad
(svn r1674) - Fix: Signs are now displayed in the correct color at all zoom levels
viewport.c
--- a/viewport.c	Tue Jan 25 17:05:38 2005 +0000
+++ b/viewport.c	Tue Jan 25 20:47:02 2005 +0000
@@ -947,7 +947,7 @@
 				sstd=AddStringToDraw(ss->sign.left + 1, ss->sign.top + 1, STR_2806, ss->str, 0, 0);
 				if (sstd != NULL) {
 					sstd->width = ss->sign.width_1;
-					sstd->color = 14;
+					sstd->color = (ss->owner==OWNER_NONE)?14:_player_colors[ss->owner];
 				}
 			}
 		}
@@ -962,10 +962,10 @@
 					right > ss->sign.left &&
 					left < ss->sign.left + ss->sign.width_2*4) {
 
-				sstd=AddStringToDraw(ss->sign.left + 1, ss->sign.top + 1, STR_2807, ss->str, 0, 0);
+				sstd=AddStringToDraw(ss->sign.left + 1, ss->sign.top + 1, STR_2002, ss->str, 0, 0);
 				if (sstd != NULL) {
 					sstd->width = ss->sign.width_2 | 0x8000;
-					sstd->color = 14;
+					sstd->color = (ss->owner==OWNER_NONE)?14:_player_colors[ss->owner];
 				}
 			}
 		}