Fix erroneous non-integer division in MapPacket.
This commit is contained in:
1 parent
67bfcaac5b
commit
864af19f7f
1 file changed
+1
-1
@@ -657,7 +657,7 @@ class MapPacket(Packet):
|
|||||||
if self.pixels is not None:
|
if self.pixels is not None:
|
||||||
for i in range(len(self.pixels)):
|
for i in range(len(self.pixels)):
|
||||||
x = self.offset[0] + i % self.width
|
x = self.offset[0] + i % self.width
|
||||||
z = self.offset[1] + i / self.width
|
z = self.offset[1] + i // self.width
|
||||||
map.pixels[x + map.width * z] = self.pixels[i]
|
map.pixels[x + map.width * z] = self.pixels[i]
|
||||||
map.is_tracking_position = self.is_tracking_position
|
map.is_tracking_position = self.is_tracking_position
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user