1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Fix setactivityposition still taking two arguments

This command was changed from setactivityposition(x,y) to
setactivityposition(y), but there's a small problem here:

```diff
             else if (words[0] == "setactivityposition")
             {
-                obj.customactivitypositionx = ss_toi(words[1]);
                 obj.customactivitypositiony = ss_toi(words[2]);
             }
```

This meant that the function still took two arguments, the first of
which was unused and the second of which was the Y position of the
activity zone. This is now fixed.
This commit is contained in:
Dav999 2023-06-04 17:52:01 +02:00 committed by Misa Elizabeth Kai
parent d09b0d6d84
commit 6148550472

View file

@ -1683,7 +1683,7 @@ void scriptclass::run(void)
}
else if (words[0] == "setactivityposition")
{
obj.customactivitypositiony = ss_toi(words[2]);
obj.customactivitypositiony = ss_toi(words[1]);
}
else if (words[0] == "createrescuedcrew")
{