- fixed incorrect sprite being passed to reactor() function.

This commit is contained in:
Christoph Oelckers 2020-07-29 20:59:32 +02:00
parent bd3b2bc5bf
commit a861126657
3 changed files with 3 additions and 3 deletions

View file

@ -3264,7 +3264,7 @@ void moveactors_d(void)
case REACTOR:
case REACTOR2:
reactor(i, REACTOR, REACTOR2, REACTOR2BURNT, REACTOR2BURNT);
reactor(i, REACTOR, REACTOR2, REACTORBURNT, REACTOR2BURNT);
continue;
case CAMERA1:

View file

@ -3240,7 +3240,7 @@ void moveactors_r(void)
case REACTOR:
case REACTOR2:
reactor(i, REACTOR, REACTOR2, REACTOR2BURNT, REACTOR2BURNT);
reactor(i, REACTOR, REACTOR2, REACTORBURNT, REACTOR2BURNT);
continue;
case CAMERA1:

View file

@ -344,7 +344,7 @@ int findlabel(const char* text, bool ignorecase = false)
int getlabelvalue(const char* text)
{
int lnum = findlabel(text, true);
if (labels[lnum].type != LABEL_DEFINE) return -1;
if (lnum >= 0 && labels[lnum].type != LABEL_DEFINE) return -1;
return lnum < 0 ? -1 : labels[lnum].value;
}