News:

Want to praise Simutrans?
Your feedback is important for us ;D.

r2170 - Color of AI message window is wrong

Started by z9999, December 18, 2008, 05:31:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999

r2170 - Color of AI message window is wrong

Note: I didn't chage it, but I think "get_player_color1()+1" is better than "get_player_color1()+0".


Index: simmesg.cc
===================================================================
--- simmesg.cc (r2170)
+++ simmesg.cc (copy)
@@ -81,7 +81,7 @@

// correct for player color
PLAYER_COLOR_VAL colorval=color;
- if(color<8) {
+ if(color< MAX_PLAYER_COUNT) {
colorval = PLAYER_FLAG|(welt->gib_spieler(color)->get_player_color1()+0);
}