Fix team color on build cursor

This commit is contained in:
Retera 2020-11-14 09:43:21 -05:00
parent 1f9ccef70c
commit 4ffd0c3283

View File

@ -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);