mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-01-01 04:42:15 +00:00
fix parsing errors
This commit is contained in:
parent
1c5f6c1470
commit
f36ae0b9ab
3 changed files with 2 additions and 1 deletions
BIN
marblegame.hl
BIN
marblegame.hl
Binary file not shown.
|
|
@ -409,6 +409,7 @@ class DtsObject extends GameObject {
|
|||
var lines = text.split('\n');
|
||||
var keyframes = [];
|
||||
for (line in lines) {
|
||||
line = StringTools.trim(line);
|
||||
if (line.substr(0, 2) == "//")
|
||||
continue;
|
||||
if (line == "")
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class Sky extends Object {
|
|||
var skyboxIndices = [3, 1, 2, 0, 4, 5];
|
||||
|
||||
for (i in 0...6) {
|
||||
var line = lines[i];
|
||||
var line = StringTools.trim(lines[i]);
|
||||
var filenames = ResourceLoader.getFullNamesOf(dmlDirectory + '/' + line);
|
||||
if (filenames.length == 0) {
|
||||
skyboxImages.push(new BitmapData(128, 128));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue