Skip to content

Commit f04f103

Browse files
committed
Cleanup
1 parent df37b50 commit f04f103

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

LEGO1/lego/legoomni/src/worlds/historybook.cpp

+10-5
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,10 @@ void HistoryBook::ReadyWorld()
129129
}
130130

131131
for (MxS32 scoreState = 0, scoreboxX = 1; scoreState < 5; scoreState++, scoreboxX += 5) {
132-
133132
for (MxS32 scoreBoxColumn = 0, scoreboxY = 1; scoreBoxColumn < 5; scoreBoxColumn++, scoreboxY += 5) {
134133
MxU8 color = score->m_scores[scoreState][scoreBoxColumn];
135134

136-
if (color) {
135+
if (color > 0) {
137136
for (MxS32 lax = 0; lax < 4; lax++) {
138137
#ifdef BETA10
139138
memset(m_scores[i]->GetBitmapStart(scoreboxX, scoreboxY + lax), scoreColors[color - 1], 4);
@@ -142,7 +141,11 @@ void HistoryBook::ReadyWorld()
142141
memset(NULL, scoreColors[color - 1], 4);
143142
}
144143
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+
);
146149
}
147150
#endif
148151
}
@@ -153,11 +156,13 @@ void HistoryBook::ReadyWorld()
153156
m_scores[i]->Enable(TRUE);
154157
m_scores[i]->SetTickleState(MxPresenter::e_repeating);
155158
m_scores[i]->SetPosition(scoreX + 0xa1, scoreY);
159+
156160
#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)
158162
#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)
160164
#endif
165+
{
161166
m_name[i][j] = m_alphabet[score->m_name.m_letters[j]]->Clone();
162167

163168
assert(m_name[i][j]);

0 commit comments

Comments
 (0)