File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -183,12 +183,11 @@ func read_own(buffer):
183
183
var dataWidth = (M .xSize * 3 ) + 1
184
184
var totalSubtiles = ((M .ySize * 3 ) + 1 ) * dataWidth
185
185
var data = buffer .get_data (totalSubtiles )
186
- print (data )
187
- # for i in totalSubtiles:
188
- # var ySubtile = i / dataWidth
189
- # var xSubtile = i % dataWidth
190
- # var value = data.get(i) # Convert byte to integer
191
- # oDataOwnership.set_cell(xSubtile / 3, ySubtile / 3, value)
186
+ for i in totalSubtiles :
187
+ var ySubtile = i / dataWidth
188
+ var xSubtile = i % dataWidth
189
+ var value = data [i ]
190
+ oDataOwnership .set_cell (xSubtile / 3 , ySubtile / 3 , value )
192
191
func new_own ():
193
192
pass
194
193
@@ -581,7 +580,7 @@ func read_lif(buffer):
581
580
func new_lif ():
582
581
pass
583
582
584
- # These get their own functions because it's also used for Viewing Map Files before you open them
583
+
585
584
func lif_buffer_to_array (buffer ):
586
585
var stringFile = buffer .get_string (buffer .get_size ())
587
586
# Divide string into lines
You can’t perform that action at this time.
0 commit comments