Stefan Schuermans commited on 2019-07-14 17:51:41
Showing 1 changed files, with 8 additions and 10 deletions.
... | ... |
@@ -88,16 +88,14 @@ bool Pong::updateConfigGame() |
88 | 88 |
|
89 | 89 |
// color file was modified -> convert color, return true for update |
90 | 90 |
// cfg value file was updated -> read new cfg value, return true for update |
91 |
- if (colorUpdate(m_fileBallColor, m_ballColor) || |
|
92 |
- colorUpdate(m_fileLineColor, m_lineColor) || |
|
93 |
- colorUpdate(m_filePadColor, m_padColor) || |
|
94 |
- colorUpdate(m_fileComputerColor, m_computerColor) || |
|
95 |
- colorUpdate(m_fileScoreColor, m_scoreColor) || |
|
96 |
- colorUpdate(m_fileGoalColor, m_goalColor) || |
|
97 |
- valueUpdate(m_fileDelay, c_delayDescr, m_delay) || |
|
98 |
- valueUpdate(m_fileMaxScore, c_maxScoreDescr, m_maxScore)) { |
|
99 |
- ret = true; |
|
100 |
- } |
|
91 |
+ if (colorUpdate(m_fileBallColor, m_ballColor)) { ret = true; } |
|
92 |
+ if (colorUpdate(m_fileLineColor, m_lineColor)) { ret = true; } |
|
93 |
+ if (colorUpdate(m_filePadColor, m_padColor)) { ret = true; } |
|
94 |
+ if (colorUpdate(m_fileComputerColor, m_computerColor)) { ret = true; } |
|
95 |
+ if (colorUpdate(m_fileScoreColor, m_scoreColor)) { ret = true; } |
|
96 |
+ if (colorUpdate(m_fileGoalColor, m_goalColor)) { ret = true; } |
|
97 |
+ if (valueUpdate(m_fileDelay, c_delayDescr, m_delay)) { ret = true; } |
|
98 |
+ if (valueUpdate(m_fileMaxScore, c_maxScoreDescr, m_maxScore)) { ret = true; } |
|
101 | 99 |
|
102 | 100 |
// sound name file was modified -> re-read sound name, no other update needed |
103 | 101 |
soundUpdate(m_fileLeftPlayerSound); |
104 | 102 |