The casino code for major wins (in all the different slot types) 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@11481 282e977c-c81d-0410-88c4-b93c2d0d6712
master
anmaster 2009-02-14 18:00:40 +00:00
parent fc2ac59b2c
commit 84813f777d
5 changed files with 5 additions and 5 deletions

View File

@ -65,7 +65,7 @@ if (object) and not object.Unpaid:
pay = slotmajor[slotlist.index(item)]
else:
break
payoff = pot*pay
payoff = int(pot*pay)
Slots.payoff(payoff)
id = Crossfire.CreateObjectByName(cointype)
id.Quantity = payoff

View File

@ -63,7 +63,7 @@ if (activator.PayAmount(cost*10)):#goldcoin
pay = slotmajor[slotlist.index(item)]
else:
break
payoff = pot*pay
payoff = int(pot*pay)
Slots.payoff(payoff)
id = Crossfire.CreateObjectByName(cointype)
id.Quantity = payoff

View File

@ -66,7 +66,7 @@ if (object) and not object.Unpaid:
pay = slotmajor[slotlist.index(item)]
else:
break
payoff = pot*pay
payoff = int(pot*pay)
Slots.payoff(payoff)
id = Crossfire.CreateObjectByName(cointype)
id.Quantity = payoff

View File

@ -63,7 +63,7 @@ if (activator.PayAmount(cost*50)):#platinumcoin
pay = slotmajor[slotlist.index(item)]
else:
break
payoff = pot*pay
payoff = int(pot*pay)
Slots.payoff(payoff)
id = Crossfire.CreateObjectByName(cointype)
id.Quantity = payoff

View File

@ -62,7 +62,7 @@ if (activator.PayAmount(cost)):#silvercoin
pay = slotmajor[slotlist.index(item)]
else:
break
payoff = pot*pay
payoff = int(pot*pay)
Slots.payoff(payoff)
id = Crossfire.CreateObjectByName(cointype)
id.Quantity = payoff