Stefan Schuermans commited on 2019-07-14 18:04:07
Showing 1 changed files, with 10 additions and 4 deletions.
| ... | ... |
@@ -74,10 +74,16 @@ bool Tetris::updateConfigGame() |
| 74 | 74 |
|
| 75 | 75 |
// color file was modified -> convert color, return true for update |
| 76 | 76 |
// cfg value file was updated -> read new cfg value, return true for update |
| 77 |
- if (colorUpdate(m_fileStoneColor, m_stoneColor) || |
|
| 78 |
- valueUpdate(m_fileDelay, c_delayDescr, m_delay) || |
|
| 79 |
- valueUpdate(m_fileDropDelay, c_dropDelayDescr, m_dropDelay) || |
|
| 80 |
- valueUpdate(m_fileBlinkDelay, c_blinkDelayDescr, m_blinkDelay)) {
|
|
| 77 |
+ if (colorUpdate(m_fileStoneColor, m_stoneColor)) {
|
|
| 78 |
+ ret = true; |
|
| 79 |
+ } |
|
| 80 |
+ if (valueUpdate(m_fileDelay, c_delayDescr, m_delay)) {
|
|
| 81 |
+ ret = true; |
|
| 82 |
+ } |
|
| 83 |
+ if (valueUpdate(m_fileDropDelay, c_dropDelayDescr, m_dropDelay)) {
|
|
| 84 |
+ ret = true; |
|
| 85 |
+ } |
|
| 86 |
+ if (valueUpdate(m_fileBlinkDelay, c_blinkDelayDescr, m_blinkDelay)) {
|
|
| 81 | 87 |
ret = true; |
| 82 | 88 |
} |
| 83 | 89 |
|
| 84 | 90 |