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:
parent
5acc5f9082
commit
f4f869a2cb
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue