@@ -129,11 +129,10 @@ void HistoryBook::ReadyWorld()
129
129
}
130
130
131
131
for (MxS32 scoreState = 0 , scoreboxX = 1 ; scoreState < 5 ; scoreState++, scoreboxX += 5 ) {
132
-
133
132
for (MxS32 scoreBoxColumn = 0 , scoreboxY = 1 ; scoreBoxColumn < 5 ; scoreBoxColumn++, scoreboxY += 5 ) {
134
133
MxU8 color = score->m_scores [scoreState][scoreBoxColumn];
135
134
136
- if (color) {
135
+ if (color > 0 ) {
137
136
for (MxS32 lax = 0 ; lax < 4 ; lax++) {
138
137
#ifdef BETA10
139
138
memset (m_scores[i]->GetBitmapStart (scoreboxX, scoreboxY + lax), scoreColors[color - 1 ], 4 );
@@ -142,7 +141,11 @@ void HistoryBook::ReadyWorld()
142
141
memset (NULL , scoreColors[color - 1 ], 4 );
143
142
}
144
143
else {
145
- memset (m_scores[i]->GetBitmap ()->GetStart (scoreboxX, lax + scoreboxY), scoreColors[color - 1 ], 4 );
144
+ memset (
145
+ m_scores[i]->GetBitmap ()->GetStart (scoreboxX, lax + scoreboxY),
146
+ scoreColors[color - 1 ],
147
+ 4
148
+ );
146
149
}
147
150
#endif
148
151
}
@@ -153,11 +156,13 @@ void HistoryBook::ReadyWorld()
153
156
m_scores[i]->Enable (TRUE );
154
157
m_scores[i]->SetTickleState (MxPresenter::e_repeating);
155
158
m_scores[i]->SetPosition (scoreX + 0xa1 , scoreY);
159
+
156
160
#ifdef BETA10
157
- for (MxS16 j = 0 ; score->m_name .m_letters [j] != -1 ; j++, scoreX += 0x17 ) {
161
+ for (MxS16 j = 0 ; score->m_name .m_letters [j] != -1 ; j++, scoreX += 0x17 )
158
162
#else
159
- for (MxS16 j = 0 ; j < (MxS16) sizeOfArray (m_name[0 ]) && score->m_name .m_letters [j] != -1 ; j++, scoreX += 0x17 ) {
163
+ for (MxS16 j = 0 ; j < (MxS16) sizeOfArray (m_name[0 ]) && score->m_name .m_letters [j] != -1 ; j++, scoreX += 0x17 )
160
164
#endif
165
+ {
161
166
m_name[i][j] = m_alphabet[score->m_name .m_letters [j]]->Clone ();
162
167
163
168
assert (m_name[i][j]);
0 commit comments