Skip to content

Conversation

@AaronVanGeffen
Copy link
Member

No description provided.


static uint32_t cloneVehicle(EntityId head, uint8_t flags)
{
setExpenditureType(ExpenditureType::VehiclePurchases);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you checked this works? I was just thinking the other day this wouldn't be super simple to do as this uses nested functions and the nested function might adjust the expenditure type.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to work fine, yeah:

Screen.Recording.2026-01-19.at.22.06.21.mp4

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not a sufficient test you would need to either clone a ship, aircraft or a train in express mode. Those are the types that will change the expenditure type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The cost of cloning a ship or aircraft shows up as 'Train running costs'.

2 participants