From f37051dcda359d016feb33c49b054430aab36d12 Mon Sep 17 00:00:00 2001 From: partmedia Date: Sat, 3 Aug 2013 00:26:20 +0000 Subject: [PATCH] Use more intuitive variable names. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18860 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/CFBank.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/CFBank.py b/python/CFBank.py index dd6cd4b35..268f611ed 100644 --- a/python/CFBank.py +++ b/python/CFBank.py @@ -20,15 +20,15 @@ class CFBank: if not user in self.bankdb: self.bankdb[user] = amount else: - temp = self.bankdb[user] - self.bankdb[user] = temp + amount + balance = self.bankdb[user] + self.bankdb[user] = balance + amount self.bankdb.sync() def withdraw(self, user, amount): if user in self.bankdb: if self.bankdb[user] >= amount: - temp = self.bankdb[user] - self.bankdb[user] = temp - amount + balance = self.bankdb[user] + self.bankdb[user] = balance - amount self.bankdb.sync() return 1 return 0