mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 13:39:09 +00:00
Feature: [NewGRF] Allow higher max speeds for ships
This commit is contained in:
committed by
rubidium42
parent
461d69a8f6
commit
5a55c4a934
@@ -87,6 +87,8 @@ Engine::Engine(VehicleType type, EngineID base)
|
||||
if (type == VEH_ROAD) this->u.road.tractive_effort = 0x4C;
|
||||
/* Aircraft must have INVALID_CARGO as default, as there is no property */
|
||||
if (type == VEH_AIRCRAFT) this->info.cargo_type = INVALID_CARGO;
|
||||
/* Ships must have a non-zero acceleration. */
|
||||
if (type == VEH_SHIP) this->u.ship.acceleration = 1;
|
||||
/* Set visual effect to the default value */
|
||||
switch (type) {
|
||||
case VEH_TRAIN: this->u.rail.visual_effect = VE_DEFAULT; break;
|
||||
|
Reference in New Issue
Block a user