.BANCHO. .FIX. Fixed a bug when changing slot in multiplayer
This commit is contained in:
parent
996287f871
commit
142c3d35cb
|
@ -423,10 +423,13 @@ class match:
|
||||||
|
|
||||||
# Get old slot data
|
# Get old slot data
|
||||||
oldData = dill.copy(self.slots[oldSlotID])
|
oldData = dill.copy(self.slots[oldSlotID])
|
||||||
#oldData = copy.deepcopy(self.slots[oldSlotID])
|
|
||||||
|
# Oh no we have a huge meme here.
|
||||||
|
# Get pointer to right token and DON'T copy it
|
||||||
|
oldData.user = glob.tokens.tokens[oldData.user.token]
|
||||||
|
|
||||||
# Free old slot
|
# Free old slot
|
||||||
self.setSlot(oldSlotID, slotStatuses.free, 0, None, 0)
|
self.setSlot(oldSlotID, slotStatuses.free, 0, None, 0, False, False, False)
|
||||||
|
|
||||||
# Occupy new slot
|
# Occupy new slot
|
||||||
self.setSlot(newSlotID, oldData.status, oldData.team, oldData.user, oldData.mods)
|
self.setSlot(newSlotID, oldData.status, oldData.team, oldData.user, oldData.mods)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user