keyword variable for OTHER_OFFSET accidentally left unused
This commit is contained in:
parent
34bed8eb92
commit
6192661855
@ -1858,7 +1858,7 @@ class gui(QtGui.QWidget):
|
|||||||
hor_offset = vert_offset = 0
|
hor_offset = vert_offset = 0
|
||||||
|
|
||||||
if "y_offset" in self.features: # AO 2.9
|
if "y_offset" in self.features: # AO 2.9
|
||||||
keyword = "<and>" if "<and>" in self.m_chatmessage[SELF_OFFSET] else "&" # WHAT THE FUCK HDF??? how and why??!
|
keyword = "<and>" if "<and>" in self.m_chatmessage[SELF_OFFSET] else "&" # i don't think it's hdf's fault but this is still ridiculous
|
||||||
hor_offset = int(self.m_chatmessage[SELF_OFFSET].split(keyword)[0])
|
hor_offset = int(self.m_chatmessage[SELF_OFFSET].split(keyword)[0])
|
||||||
vert_offset = int(self.m_chatmessage[SELF_OFFSET].split(keyword)[1]) if len(self.m_chatmessage[SELF_OFFSET].split(keyword)) > 1 else 0
|
vert_offset = int(self.m_chatmessage[SELF_OFFSET].split(keyword)[1]) if len(self.m_chatmessage[SELF_OFFSET].split(keyword)) > 1 else 0
|
||||||
else:
|
else:
|
||||||
@ -1894,9 +1894,9 @@ class gui(QtGui.QWidget):
|
|||||||
|
|
||||||
hor2_offset = vert2_offset = 0
|
hor2_offset = vert2_offset = 0
|
||||||
if "y_offset" in self.features: # AO 2.9
|
if "y_offset" in self.features: # AO 2.9
|
||||||
keyword = "<and>" if "<and>" in self.m_chatmessage[OTHER_OFFSET] else "&" # WHAT THE FUCK HDF??? how and why??!
|
keyword = "<and>" if "<and>" in self.m_chatmessage[OTHER_OFFSET] else "&" # i don't think it's hdf's fault but this is still ridiculous
|
||||||
hor2_offset = int(self.m_chatmessage[OTHER_OFFSET].split("&")[0])
|
hor2_offset = int(self.m_chatmessage[OTHER_OFFSET].split(keyword)[0])
|
||||||
vert2_offset = int(self.m_chatmessage[OTHER_OFFSET].split("&")[1]) if len(self.m_chatmessage[OTHER_OFFSET].split("&")) > 1 else 0
|
vert2_offset = int(self.m_chatmessage[OTHER_OFFSET].split(keyword)[1]) if len(self.m_chatmessage[OTHER_OFFSET].split(keyword)) > 1 else 0
|
||||||
else:
|
else:
|
||||||
hor2_offset = int(self.m_chatmessage[OTHER_OFFSET])
|
hor2_offset = int(self.m_chatmessage[OTHER_OFFSET])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user