Fix some more whitespace/formatting issues.

This commit is contained in:
Jonathan G Rennison
2016-01-31 15:22:46 +00:00
parent 5e924262f4
commit 9742300a1e
5 changed files with 17 additions and 18 deletions

View File

@@ -376,16 +376,17 @@ protected:
if (this->breakdown_ctr == 1) {
if (this->breakdown_type == BREAKDOWN_LOW_POWER) {
if((this->tick_counter & 0x7) == 0) {
if(this->cur_speed > (this->breakdown_severity * max_speed) >> 8) {
if ((this->tick_counter & 0x7) == 0) {
if (this->cur_speed > (this->breakdown_severity * max_speed) >> 8) {
tempmax = this->cur_speed - (this->cur_speed / 10) - 1;
} else {
tempmax = (this->breakdown_severity * max_speed) >> 8;
}
}
}
if(this->breakdown_type == BREAKDOWN_LOW_SPEED)
if (this->breakdown_type == BREAKDOWN_LOW_SPEED) {
tempmax = min(max_speed, this->breakdown_severity);
}
}
if (this->cur_speed > max_speed) {