mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 01:49:11 -07:00
It lives! We have tanks displaying
This commit is contained in:
@@ -32,7 +32,7 @@ package alternativa.engine3d.core
|
|||||||
var list:DrawUnit = null;
|
var list:DrawUnit = null;
|
||||||
var next:DrawUnit = null;
|
var next:DrawUnit = null;
|
||||||
var drawUnitsLength:int = int(this.name_T5.length);
|
var drawUnitsLength:int = int(this.name_T5.length);
|
||||||
for(var i:int = 0; i < drawUnitsLength; )
|
for(var i:int = 0; i < drawUnitsLength; i++)
|
||||||
{
|
{
|
||||||
list = this.name_T5[i];
|
list = this.name_T5[i];
|
||||||
if(list != null)
|
if(list != null)
|
||||||
@@ -86,9 +86,19 @@ package alternativa.engine3d.core
|
|||||||
}
|
}
|
||||||
context.setDepthTest(false,Context3DCompareMode.LESS);
|
context.setDepthTest(false,Context3DCompareMode.LESS);
|
||||||
}
|
}
|
||||||
|
// Rendering, XXX: this was missing from the decompile so I just coppied the code from latest A3D (8.32)
|
||||||
|
while (list != null) {
|
||||||
|
next = list.next;
|
||||||
|
renderDrawUnit(list, context, camera);
|
||||||
|
// Send to collector
|
||||||
|
list.clear();
|
||||||
|
list.next = collector;
|
||||||
|
collector = list;
|
||||||
|
list = next;
|
||||||
}
|
}
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.name_T5.length = 0;
|
this.name_T5.length = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user