mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- No weapon fix
I just forget to set default values
This commit is contained in:
parent
0f2c4f7760
commit
d79c45584a
3 changed files with 8 additions and 8 deletions
|
@ -2551,12 +2551,6 @@ void actInit(bool bSaveLoad) {
|
|||
// reset counters
|
||||
gProxySpritesCount = gSightSpritesCount = gPhysSpritesCount = 0;
|
||||
|
||||
// reset qav player index
|
||||
for (int i = 0; i < kMaxPlayers; i++) {
|
||||
gQavScene[i].index = -1;
|
||||
gQavScene[i].qavId = NULL;
|
||||
}
|
||||
|
||||
// fill arrays with negative values to avoid xvel 0 situation
|
||||
memset(gSightSpritesList, -1, sizeof(gSightSpritesList));
|
||||
memset(gProxySpritesList, -1, sizeof(gProxySpritesList));
|
||||
|
|
|
@ -898,6 +898,12 @@ void playerStart(int nPlayer)
|
|||
PLAYER* pPlayer = &gPlayer[nPlayer];
|
||||
GINPUT* pInput = &pPlayer->input;
|
||||
ZONE* pStartZone = NULL;
|
||||
|
||||
// reset qav player index
|
||||
if (gModernMap) {
|
||||
gQavScene[pPlayer->nPlayer].index = -1;
|
||||
gQavScene[pPlayer->nPlayer].qavId = NULL;
|
||||
}
|
||||
|
||||
// normal start position
|
||||
if (gGameOptions.nGameType <= 1)
|
||||
|
|
|
@ -212,8 +212,8 @@ struct POWERUPINFO {
|
|||
|
||||
|
||||
struct QAVSCENE {
|
||||
short index;
|
||||
QAV* qavId;
|
||||
short index = -1;
|
||||
QAV* qavId = NULL;
|
||||
};
|
||||
extern QAVSCENE gQavScene[kMaxPlayers];
|
||||
|
||||
|
|
Loading…
Reference in a new issue