[Ohrrpgce] [ohrrpgce/ohrrpgce] Setting hero speed to 0 can cause "BUG: interpolatecat: cats() array access out of bounds (-2147483648)" (Issue #1227)

Ralph Versteegen notifications at github.com
Tue Nov 2 19:34:34 PDT 2021


Feenick and SwordPlay reported a BUG message (at some point) after using `set hero speed(me,0)`. It's crash report 059ee8de-c25f-44ba-a187-2c95fb49a5ec from Feenick. Sword provided a script:
```
plotscript, key, begin

if(key is pressed(key:z))
then(
if(dashmax>0)
then(set hero speed(me,10),dashmax-=0)
else(set hero speed(me,5))
)
else(
    if(key is pressed(key:x))
    then(set hero speed(me,0))
    else(
    IF(Check tag(3)==OFF)
    THEN(set hero speed(me,5))
    ELSE(set hero speed(me,10))
)
)
IF(key is pressed(key:w))THEN(dashmax:=10)
end

global variable (1, dashmax)
```
> SwordPlay: hold down z and x and move around. i think? press w first i guess

I haven't tried to reproduce

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1227
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20211102/073bdfb5/attachment.html>


More information about the Ohrrpgce mailing list