View unanswered posts | View active topics It is currently Tue Oct 03, 2023 12:47 pm

Reply to topic  [ 2 posts ] 
 Fencepost error in withdrawal/transfer-from-treasury code 
Author Message

Joined: Wed Jan 23, 2013 7:21 pm
Posts: 0
Location: California
Unread post Fencepost error in withdrawal/transfer-from-treasury code
There exists a fencepost error in the credit withdrawal/transfer-from code in both the Bank and treasury.

To see it, have 999,999,999 credits and then attempt to withdraw 1 more. It gives you the "you cannot have more than 1,000,000,000 credits" message, even though selling a ship and trading both allow the collection of 1 more.

(For that matter, trying to sell a ship with a value that would cause excess of 1 billion credits after completing the transaction should warn about it.)

Yes, I know that this is a truly trivial thing to gripe about. I'm just poking at the edges to figure out what the limits actually are.


Sat Mar 02, 2013 3:41 pm

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1837
Location: Guam USA
Unread post Re: Fencepost error in withdrawal/transfer-from-treasury cod
It should give you the "you cannot have more than 999,999,999 credits" message , and therefore would be fixed ...

You can not carry any more then that as a player.
Your citadel level planets can carry many time that , in their banks.

Thanks for finding a trivial thing , but one to remember non the least.

TWGS V2 Vids World on Guam Port 2002
Discord @ DiverDave#8374
Vid's World Discord

Founding Member -=[Team Kraaken]=- Ka Pla

Winners of Gridwars 2010
MBN Fall Tournament 2011 winners Team Kraaken
Undisputed Champions of 2019 HHT Just for showing up!

The Oldist , Longist Running , Orginal Registered Owner of a TWGS server :
Vids World On Guam

Sun Mar 03, 2013 6:22 am
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.