1.9: Flawed Finances

Here you can... report bugs. Open a new thread for each bug, please.
Post Reply
MarkC
Posts: 96
Joined: Tue Mar 29, 2005 10:34 pm

1.9: Flawed Finances

Post by MarkC »

In 1.9, at the start of every even-numbered week, you pay for all of last week's expenses again. In effect, you pay double wages every other week. I wondered why I kept going bankrupt. :)
For more trouble, improve your stadium on an odd-numbered week, and watch your funds plummet next week as you pay for it all again! :shock:

Proposed patch to finance.c and game.c attached. The money works out right after applying this, but I'm not sure it's the right way to go. It involves double entry of each transaction (once to update user->money, and again to update user->money_out[1][]). However this seems to be the established method in other places, like the callback functions.

MarkC
Attachments
finance.patch.gz
Finances patch
(744 Bytes) Downloaded 63 times
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

thanks for your patch, you were right; wages and journey costs were counted double ;-) your solution seems fine :arrow: fixed.

i didn't think of looking at the stadium, too, so that'll be corrected later.

gyözö
Press any key to continue or any other key to quit.
Post Reply