From fc2ac59b2c114ff50e29a7cccf40f6593c29e6f2 Mon Sep 17 00:00:00 2001 From: anmaster Date: Sat, 14 Feb 2009 17:09:40 +0000 Subject: [PATCH] The exchange code in /python/IPO/banksay.py was missing a cast to integer, this resulted in a traceback on Python 3.x. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11477 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/IPO/banksay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/IPO/banksay.py b/python/IPO/banksay.py index 0f145e363..e4a54f289 100644 --- a/python/IPO/banksay.py +++ b/python/IPO/banksay.py @@ -120,7 +120,7 @@ elif text[0] == 'exchange': # prevents the player from carrying too # many coins. id = activator.Map.CreateObject('platinum coin', x, y) - CFItemBroker.Item(id).add(amount*(exchange_rate/50)) + CFItemBroker.Item(id).add(int(amount*(exchange_rate/50))) activator.Take(id) message = random.choice(thanks_message)