refactor: cpp style casts

This commit is contained in:
2022-04-27 19:25:36 +02:00
parent d3edc0cb6c
commit d5b42caf39
6 changed files with 21 additions and 21 deletions

View File

@@ -44,7 +44,7 @@ void Mob::AttackCastle(std::uint64_t delta, World* world) {
void Mob::Walk(std::uint64_t delta, World* world) {
float mobWalkSpeed = GetStats()->GetMovementSpeed();
float walkAmount = mobWalkSpeed * ((float)delta / 1000.0f);
float walkAmount = mobWalkSpeed * (static_cast<float>(delta) / 1000.0f);
if (HasEffect(EffectType::Slowness))
walkAmount *= 0.70; // walk 30% slower