mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-04-24 08:43:15 +02:00
fix bug where !set arguments would be cast to float then back to int
This commit is contained in:
parent
c16caed5dd
commit
16522056fb
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user