<div dir="ltr">While "set hero speed" disallows negative speed, "alter npc" does almost no validity checking! And we generally don't check data files contain valid data either.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 10 Nov 2019 at 13:19, James Paige <<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>*cough, mumble*<br></div><div><br></div><div>Because I forgot about showbug. I'll fix it :)</div><div><br></div><div>Do we allow negative speed anywhere? If negative speed works, and makes you walk backwards or something, my head might explode ;)</div><div><br></div><div>---</div><div>James<br></div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 9, 2019 at 7:08 PM Ralph Versteegen <<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Well why not showbug instead of visible_debug then?</div><div><br></div><div>It looks like this could only have happened if old_speed was negative. If it was zero I think you would get a division by zero error instead.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 10 Nov 2019 at 11:50, James Paige <<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I have only seen this array-out-of-bounds access happen once, while I was button-mashing in my first playthrough of breakout.rpg for the Halloween contest.</div><div><br></div><div>No matter how hard I tried, I couldn't reproduce it again, but it did definitely happen.</div><div><br></div><div>I figure this change makes it easier for someone else to see it and report when it occurs.</div><div><br></div><div>Will I regret this choice?</div><div><br></div><div>The chances are always non-zero ;)</div><div><br></div><div>---</div><div>James</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 9, 2019 at 5:47 PM <<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">james<br>
2019-11-09 14:47:33 -0800 (Sat, 09 Nov 2019)<br>
73<br>
Detect, and visible_debug an array-out-of-bounds access in interpolatecat<br>
---<br>
U   wip/game.bas<br>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>