mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 21:50:18 +02:00
fix bug where !set arguments would be cast to float then back to int
This commit is contained in:
@@ -271,7 +271,7 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words)
|
||||
float newValuef;
|
||||
if (value.GetType() == TypeNumber)
|
||||
{
|
||||
newValue = newValuef = ((NumberType)value).Value();
|
||||
newValuef = newValue = ((NumberType)value).Value();
|
||||
}
|
||||
else if (value.GetType() == TypeFloat)
|
||||
{
|
||||
|
Reference in New Issue
Block a user