[Cleanup] Cleanup ChangeSize() (#3959)

# Notes
- Use `EQ::Clamp()` for logic instead of basic comparsions.
- Rename restriction parameter to `unrestricted`.
This commit is contained in:
Alex King
2024-01-12 02:51:02 -05:00
committed by GitHub
parent b61649a2a0
commit 53d6e449c2
5 changed files with 15 additions and 25 deletions
+2 -2
View File
@@ -311,9 +311,9 @@ void Perl_Mob_ChangeSize(Mob* self, float in_size) // @categories Script Utility
self->ChangeSize(in_size);
}
void Perl_Mob_ChangeSize(Mob* self, float in_size, bool no_restriction) // @categories Script Utility
void Perl_Mob_ChangeSize(Mob* self, float in_size, bool unrestricted) // @categories Script Utility
{
self->ChangeSize(in_size, no_restriction);
self->ChangeSize(in_size, unrestricted);
}
void Perl_Mob_GMMove(Mob* self, float x, float y, float z) // @categories Script Utility