1
0
Fork 0

Don't allow backcounts to get below zero (acces violations). Fixes melee mode of starcon2 with gus enabled

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1810
This commit is contained in:
Peter Veenstra 2004-06-06 19:37:38 +00:00
parent 5acc5f9082
commit f4f869a2cb

View file

@ -364,9 +364,9 @@ public:
if(dir) {
// Increment backwards
if (moving) CurAddr -= RealDelta;
// Increment backwards but don't let it get below zero.
if (moving) { if(CurAddr > RealDelta) CurAddr -= RealDelta; else CurAddr = 0; }
//Thought 16-bit needed this
//if ((!eightbit) && (moving)) CurAddr -= RealDelta;