mirror of
https://github.com/Retera/WarsmashModEngine.git
synced 2022-07-31 17:38:59 +02:00
Fix team color on build cursor
This commit is contained in:
parent
1f9ccef70c
commit
4ffd0c3283
@ -494,6 +494,7 @@ public class MeleeUI implements CUnitStateListener, CommandButtonListener, Comma
|
||||
this.war3MapViewer.mapPathSolver, this.war3MapViewer.solverParams);
|
||||
this.cursorModelInstance = (MdxComplexInstance) model.addInstance();
|
||||
this.cursorModelInstance.setVertexColor(new float[] { 1, 1, 1, 0.5f });
|
||||
this.cursorModelInstance.setTeamColor(activeCommandUnit.getSimulationUnit().getPlayerIndex());
|
||||
this.cursorModelInstance.rotate(RenderUnit.tempQuat.setFromAxis(RenderMathUtils.VEC3_UNIT_Z,
|
||||
this.war3MapViewer.simulation.getGameplayConstants().getBuildingAngle()));
|
||||
this.cursorModelInstance.setAnimationSpeed(0f);
|
||||
|
Loading…
Reference in New Issue
Block a user