mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +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
|
// reset counters
|
||||||
gProxySpritesCount = gSightSpritesCount = gPhysSpritesCount = 0;
|
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
|
// fill arrays with negative values to avoid xvel 0 situation
|
||||||
memset(gSightSpritesList, -1, sizeof(gSightSpritesList));
|
memset(gSightSpritesList, -1, sizeof(gSightSpritesList));
|
||||||
memset(gProxySpritesList, -1, sizeof(gProxySpritesList));
|
memset(gProxySpritesList, -1, sizeof(gProxySpritesList));
|
||||||
|
|
|
@ -899,6 +899,12 @@ void playerStart(int nPlayer)
|
||||||
GINPUT* pInput = &pPlayer->input;
|
GINPUT* pInput = &pPlayer->input;
|
||||||
ZONE* pStartZone = NULL;
|
ZONE* pStartZone = NULL;
|
||||||
|
|
||||||
|
// reset qav player index
|
||||||
|
if (gModernMap) {
|
||||||
|
gQavScene[pPlayer->nPlayer].index = -1;
|
||||||
|
gQavScene[pPlayer->nPlayer].qavId = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// normal start position
|
// normal start position
|
||||||
if (gGameOptions.nGameType <= 1)
|
if (gGameOptions.nGameType <= 1)
|
||||||
pStartZone = &gStartZone[nPlayer];
|
pStartZone = &gStartZone[nPlayer];
|
||||||
|
|
|
@ -212,8 +212,8 @@ struct POWERUPINFO {
|
||||||
|
|
||||||
|
|
||||||
struct QAVSCENE {
|
struct QAVSCENE {
|
||||||
short index;
|
short index = -1;
|
||||||
QAV* qavId;
|
QAV* qavId = NULL;
|
||||||
};
|
};
|
||||||
extern QAVSCENE gQavScene[kMaxPlayers];
|
extern QAVSCENE gQavScene[kMaxPlayers];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue