mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +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;
|
float newValuef;
|
||||||
if (value.GetType() == TypeNumber)
|
if (value.GetType() == TypeNumber)
|
||||||
{
|
{
|
||||||
newValue = newValuef = ((NumberType)value).Value();
|
newValuef = newValue = ((NumberType)value).Value();
|
||||||
}
|
}
|
||||||
else if (value.GetType() == TypeFloat)
|
else if (value.GetType() == TypeFloat)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user