Way too expensive ;)

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
SailorSat
Engineer
Engineer
Posts: 3
Joined: 07 May 2004 12:12
Contact:

Way too expensive ;)

Post by SailorSat »

no text ;)
Attachments
HELP ;)
HELP ;)
negative.gif (18.12 KiB) Viewed 3742 times
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post by dominik81 »

Please add a savegame and file a bug report on SourceForge. Even though it might be easy to reproduce this bug, it still takes time to create a game that has the same bug in it. Therefore we can fix the bugs much faster if we already have a savegame we can use to fix it.
"There's a readme that comes with the source. I suggest you read it."
- Korenn
SailorSat
Engineer
Engineer
Posts: 3
Joined: 07 May 2004 12:12
Contact:

Post by SailorSat »

Seems quite simple to spot the 'source'

i have -3000€
i would get 128€ for delete a sign i placed

and i guess its a simple math that checks if i can pay an action

if (money - price to build/bulldoze) >= 0

i. E. -3000 - -128 = -2872
which is (still) negative so i can't afford that action
Attachments
blubb.sav
an simple example savegame
(71.55 KiB) Downloaded 263 times
ChrisCF
Transport Empire Developer
Transport Empire Developer
Posts: 3608
Joined: 26 Dec 2002 16:39
Location: Over there --->

Post by ChrisCF »

IMO, actions which gain you money should be exempt from the check, since sometimes removing old track and signalling is a useful way to pick up a few extra pounds when you're in the red.
User avatar
Lilman424
Tycoon
Tycoon
Posts: 2743
Joined: 20 Oct 2002 14:55
Location: Georgia
Contact:

Post by Lilman424 »

Code: Select all

If (cost <= current_money || cost <= 0)
    able_to_build = true
Psicho
Engineer
Engineer
Posts: 112
Joined: 27 Apr 2004 09:37
Location: Switzerland
Contact:

Post by Psicho »

I've got this bug too, please fix it in the next release..
greetz,
Rasael
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 14 guests