Debian Codegraph @

debian/patches/40_player_colors.diff

raw
1 #Description: Fix mixed up color code.
2 Index: qonk-0.3.1/src/messages.cpp
3 ===================================================================
4 --- qonk-0.3.1.orig/src/messages.cpp 2009-04-07 22:00:04.000000000 -0400
5 +++ qonk-0.3.1/src/messages.cpp 2009-04-07 22:01:23.000000000 -0400
6 @@ -21,8 +21,8 @@
7 Message::Message( Uint32 time, string message, Uint32 displayTime, Uint32 color ) {
8 this->message = string( "[" ) + Timer::getTimeMMSS(time) + "] " + message;
9 this->displayTime = displayTime;
10 - this->r = getGreen( color );
11 - this->g = getRed( color );
12 + this->r = getRed( color );
13 + this->g = getGreen( color );
14 this->b = getBlue( color );
15 }
16
17 @@ -37,8 +37,8 @@
18 Message::Message( Uint32 time, string message, Uint32 color ) {
19 this->message = string( "[" ) + Timer::getTimeMMSS(time) + "] " + message;
20 this->displayTime = 10000;
21 - this->r = getGreen( color );
22 - this->g = getRed( color );
23 + this->r = getRed( color );
24 + this->g = getGreen( color );
25 this->b = getBlue( color );
26 }
27