From 25ee6663b8356ad3598005297e57c9c260248d2f Mon Sep 17 00:00:00 2001 From: Philip Paquette Date: Fri, 9 Aug 2019 10:40:02 -0400 Subject: [API] Fixed issue when disbanding a fleet from a coast --- diplomacy/integration/webdiplomacy_net/orders.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'diplomacy/integration/webdiplomacy_net/orders.py') diff --git a/diplomacy/integration/webdiplomacy_net/orders.py b/diplomacy/integration/webdiplomacy_net/orders.py index 77577d1..976a34b 100644 --- a/diplomacy/integration/webdiplomacy_net/orders.py +++ b/diplomacy/integration/webdiplomacy_net/orders.py @@ -374,8 +374,6 @@ class Order(): # --- Disband (R phase) --- # {"id": "152", "unitID": "18", "type": "Disband", "toTerrID": "", "fromTerrID": "", "viaConvoy": ""} elif order_type == 'D' and self.phase_type == 'R': - loc_name = loc_name[:3] - terr_id = CACHE[self.map_name]['loc_to_ix'][loc_name] self.order_str = '%s %s D' % (short_unit_type, loc_name) self.order_dict = {'terrID': terr_id, 'unitType': unit_type, @@ -409,8 +407,6 @@ class Order(): # Disband (A phase) # {"id": "152", "unitID": null, "type": "Destroy", "toTerrID": "18", "fromTerrID": "", "viaConvoy": ""} elif order_type == 'D': - loc_name = loc_name[:3] - terr_id = CACHE[self.map_name]['loc_to_ix'][loc_name] self.order_str = '%s %s D' % (short_unit_type, loc_name) self.order_dict = {'terrID': terr_id, 'unitType': unit_type, -- cgit v1.2.3