mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-27 16:00:51 -07:00
sleep
This commit is contained in:
parent
7ec50fb800
commit
8c2307eb83
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
|||
|
||||
public float speed(){
|
||||
//limit speed to minimum formation speed to preserve formation
|
||||
return isCommanding() ? minFormationSpeed * 0.98f : type.speed;
|
||||
return isCommanding() ? ((Commanderc)this).minFormationSpeed * 0.98f : type.speed;
|
||||
}
|
||||
|
||||
/** @return speed with boost multipliers factored in. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue