mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-29 02:10:36 +00:00
- fixed incorrect sprite being passed to reactor() function.
This commit is contained in:
parent
bd3b2bc5bf
commit
a861126657
3 changed files with 3 additions and 3 deletions
|
@ -3264,7 +3264,7 @@ void moveactors_d(void)
|
||||||
|
|
||||||
case REACTOR:
|
case REACTOR:
|
||||||
case REACTOR2:
|
case REACTOR2:
|
||||||
reactor(i, REACTOR, REACTOR2, REACTOR2BURNT, REACTOR2BURNT);
|
reactor(i, REACTOR, REACTOR2, REACTORBURNT, REACTOR2BURNT);
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
case CAMERA1:
|
case CAMERA1:
|
||||||
|
|
|
@ -3240,7 +3240,7 @@ void moveactors_r(void)
|
||||||
|
|
||||||
case REACTOR:
|
case REACTOR:
|
||||||
case REACTOR2:
|
case REACTOR2:
|
||||||
reactor(i, REACTOR, REACTOR2, REACTOR2BURNT, REACTOR2BURNT);
|
reactor(i, REACTOR, REACTOR2, REACTORBURNT, REACTOR2BURNT);
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
case CAMERA1:
|
case CAMERA1:
|
||||||
|
|
|
@ -344,7 +344,7 @@ int findlabel(const char* text, bool ignorecase = false)
|
||||||
int getlabelvalue(const char* text)
|
int getlabelvalue(const char* text)
|
||||||
{
|
{
|
||||||
int lnum = findlabel(text, true);
|
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;
|
return lnum < 0 ? -1 : labels[lnum].value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue