The International Simutrans Forum

 

Author Topic: r2170 - Color of AI message window is wrong  (Read 2418 times)

0 Members and 1 Guest are viewing this topic.

Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
r2170 - Color of AI message window is wrong
« on: December 18, 2008, 05:31:07 PM »
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".

Code: [Select]
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);
  }
 

« Last Edit: December 18, 2008, 05:47:41 PM by z9999 »