count the deploy timer in milliseconds
the models came back with the counter moving, but every troop sat in its deploy pose: DeployTime is 1000 and it shares a table with HitSpeed 1100 and 1500, so it is milliseconds, not ticks. moving the counter by one a tick stretched a one second deploy across a thousand ticks - most of the match. it now moves a tick's worth at a time, so deploying takes the twenty ticks it should.
This commit is contained in:
parent
b8c12cd00b
commit
04fbabb7d2
1 changed files with 2 additions and 1 deletions
|
|
@ -210,7 +210,8 @@ impl LogicBattle {
|
|||
continue;
|
||||
};
|
||||
if character.deploy_timer < deploy_time {
|
||||
character.deploy_timer += 1;
|
||||
character.deploy_timer =
|
||||
(character.deploy_timer + TICK_MILLISECONDS).min(deploy_time);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue