goldencow2 / 18Engine

A plug-and-play script that can be added to any 18XX mod on TTS with no scripting knowledge.
GNU General Public License v3.0
4 stars 3 forks source link

When doing a reverse pay half (i.e., pay half on -50), the rounding is incorrect. #5

Closed Breich90 closed 3 years ago

Breich90 commented 3 years ago

In example: 1822MX, pay half on 70. Shareholders get paid 40, company gets 30. Paying half on -70 means the company gets -40 and the shareholders get -30. The rounding calc should be some form of absolute value, I'm poking through the codebase to find the payout button and I'll send in a merge request if I find it.

goldencow2 commented 3 years ago

Fixed in version 2.84, though I will ping the mod maker.