[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
@@ -270,9 +270,9 @@ void Lua_Mob::ChangeSize(double in_size) {
self->ChangeSize(static_cast<float>(in_size));
}
void Lua_Mob::ChangeSize(double in_size, bool no_restriction) {
void Lua_Mob::ChangeSize(double in_size, bool unrestricted) {
Lua_Safe_Call_Void();
self->ChangeSize(static_cast<float>(in_size), no_restriction);
self->ChangeSize(static_cast<float>(in_size), unrestricted);
}
void Lua_Mob::GMMove(double x, double y, double z) {