117 SetDParam(0, p->name_1); |
117 SetDParam(0, p->name_1); |
118 SetDParam(1, p->name_2); |
118 SetDParam(1, p->name_2); |
119 SetDParam(2, GetPlayerNameString(p->index, 3)); |
119 SetDParam(2, GetPlayerNameString(p->index, 3)); |
120 |
120 |
121 r = t->ratings[p->index]; |
121 r = t->ratings[p->index]; |
122 (str = STR_3035_APPALLING, r <= -400) || // Apalling |
122 (str = STR_3035_APPALLING, r <= RATING_APPALLING) || // Apalling |
123 (str++, r <= -200) || // Very Poor |
123 (str++, r <= RATING_VERYPOOR) || // Very Poor |
124 (str++, r <= 0) || // Poor |
124 (str++, r <= RATING_POOR) || // Poor |
125 (str++, r <= 200) || // Mediocore |
125 (str++, r <= RATING_MEDIOCRE) || // Mediocore |
126 (str++, r <= 400) || // Good |
126 (str++, r <= RATING_GOOD) || // Good |
127 (str++, r <= 600) || // Very Good |
127 (str++, r <= RATING_VERYGOOD) || // Very Good |
128 (str++, r <= 800) || // Excellent |
128 (str++, r <= RATING_EXCELLENT) || // Excellent |
129 (str++, true); // Outstanding |
129 (str++, true); // Outstanding |
130 |
130 |
131 /* WARNING ugly hack! |
131 /* WARNING ugly hack! |
132 GetPlayerNameString sets up (Player #) if the player is human in an extra DPARAM16 |
132 GetPlayerNameString sets up (Player #) if the player is human in an extra DPARAM16 |
133 It seems that if player is non-human, nothing is set up, so param is 0. GetString doesn't like |
133 It seems that if player is non-human, nothing is set up, so param is 0. GetString doesn't like |