[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 authored and GitHub committed 2024-01-12 01:51:02 -06:00
1 parent b61649a2a0
commit 53d6e449c2
5 files changed
+15 -25

No files matched your search

+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