Fix deposit option.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3121 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
1a62f13bce
commit
148649ceac
|
@ -61,7 +61,7 @@ if text[0] == 'help' or text[0] == 'yes':
|
|||
|
||||
elif text[0] == 'deposit':
|
||||
if len(text)==2:
|
||||
if (CFPython.PayAmount(activator, (int(text[1])*exchange_rate)*fees)):
|
||||
if (CFPython.PayAmount(activator, int((int(text[1])*exchange_rate)*fees))):
|
||||
bank.deposit(activatorname, int(text[1]))
|
||||
message = '%d received, %d imperials deposited to bank account. %s' \
|
||||
%((int(text[1])*(exchange_rate/50))*fees,int(text[1]),random.choice(thanks_message))
|
||||
|
|
Loading…
Reference in New Issue