File diff r14278:647a4c3f06e1 → r14279:b1c04915b4a5
src/train_cmd.cpp
Show inline comments
 
@@ -2943,13 +2943,13 @@ int Train::UpdateSpeed()
 
		default: NOT_REACHED();
 
		case TAM_ORIGINAL: accel = this->acceleration * (this->GetAccelerationStatus() == AM_BRAKE) ? -4 : 2; break;
 
		case TAM_REALISTIC:
 
			this->max_speed = this->GetCurrentMaxSpeed();
 
			accel = this->GetAcceleration();
 
			break;
 
 	}
 
	}
 

	
 
	uint spd = this->subspeed + accel;
 
	this->subspeed = (byte)spd;
 
	{
 
		int tempmax = this->max_speed;
 
		if (this->cur_speed > this->max_speed)