From ed4a0d2b14c222c35925ec0276ef85ecb58abe97 Mon Sep 17 00:00:00 2001 From: anmaster Date: Fri, 6 Feb 2009 16:32:36 +0000 Subject: [PATCH] Fix part of bug 2457751 "Unpaid items work for some things...": Make diamondslots.py and imperialslots.py check that the object is paid for. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11348 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/casino/diamondslots.py | 2 +- python/casino/imperialslots.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/casino/diamondslots.py b/python/casino/diamondslots.py index 0bd05fd36..30272ea40 100644 --- a/python/casino/diamondslots.py +++ b/python/casino/diamondslots.py @@ -32,7 +32,7 @@ spinners = 4 #How many spinners on the slotmachine? Slots=CFGamble.SlotMachine(slotname,slotlist,minpot,maxpot) object = activator.CheckInventory(cointype) -if (object): +if (object) and not object.Unpaid: pay = CFItemBroker.Item(object).subtract(cost) if (pay): Slots.placebet(cost) diff --git a/python/casino/imperialslots.py b/python/casino/imperialslots.py index 2fa04c712..4db0beada 100644 --- a/python/casino/imperialslots.py +++ b/python/casino/imperialslots.py @@ -33,7 +33,7 @@ spinners = 4 #How many spinners on the slotmachine? Slots=CFGamble.SlotMachine(slotname,slotlist,minpot,maxpot) object = activator.CheckInventory(cointype) -if (object): +if (object) and not object.Unpaid: pay = CFItemBroker.Item(object).subtract(cost) if (pay): Slots.placebet(cost)