View unanswered posts | View active topics It is currently Mon Sep 25, 2017 4:51 am



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

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.

-wingedwolf


Sat Mar 02, 2013 3:41 pm
Profile
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1706
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
Telnet://202.151.82.243:2002
Team Speak3 Servers for TradeWars @
Zoom's Team Speak Server
ts3server://vs26.tserverhq.com:7214 This is where I'm at.

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

Image
Image


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 1 guest


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.