town_gui.c
changeset 2063 95259a31ceb5
parent 1962 51ee4f459268
child 2070 26c657906f25
--- a/town_gui.c	Fri Jul 15 14:16:14 2005 +0000
+++ b/town_gui.c	Fri Jul 15 14:53:44 2005 +0000
@@ -132,13 +132,7 @@
 					(str++, r <= RATING_EXCELLENT) ||											// Excellent
 					(str++, true);														// Outstanding
 
-					/*	WARNING ugly hack!
-							GetPlayerNameString sets up (Player #) if the player is human in an extra DPARAM16
-							It seems that if player is non-human, nothing is set up, so param is 0. GetString doesn't like
-							that because there is another param after it.
-							So we'll just shift the rating one back if player is AI and all is fine
-						*/
-					SetDParam((IS_HUMAN_PLAYER(p->index) ? 4 : 3), str);
+					SetDParam(4, str);
 					if (t->exclusivity == p->index) // red icon for player with exclusive rights
 						DrawSprite((SPR_BLOT) | 0x30b8000, 18, y);