mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Fix M_GetLevelEmblems to work with gamemap index (as it was used for) instead of mapheaderinfo index
This commit is contained in:
parent
dbb96dabd6
commit
0e8c739efc
1 changed files with 5 additions and 3 deletions
|
|
@ -1301,7 +1301,7 @@ emblem_t *M_GetLevelEmblems(INT32 mapnum)
|
||||||
|
|
||||||
if (mapnum > 0)
|
if (mapnum > 0)
|
||||||
{
|
{
|
||||||
map = mapnum;
|
map = mapnum-1;
|
||||||
i = numemblems;
|
i = numemblems;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1312,8 +1312,10 @@ emblem_t *M_GetLevelEmblems(INT32 mapnum)
|
||||||
if (checkLevel >= nummapheaders || !mapheaderinfo[checkLevel])
|
if (checkLevel >= nummapheaders || !mapheaderinfo[checkLevel])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (checkLevel == map)
|
if (checkLevel != map)
|
||||||
return &emblemlocations[i];
|
continue;
|
||||||
|
|
||||||
|
return &emblemlocations[i];
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue