mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-25 22:25:46 +00:00
allow arbitrary damage type IDs in shots instead of only "DT_*" string constants
This commit is contained in:
parent
0784d1b9df
commit
1217432561
2 changed files with 4 additions and 2 deletions
|
@ -6252,7 +6252,7 @@ void Game::applyState()
|
|||
core->afterEffectManager->clear();
|
||||
//core->afterEffectManager->addEffect(new RippleEffect());
|
||||
}
|
||||
Shot::shots.clear();
|
||||
Shot::shots.clear(); // the shots were deleted elsewhere, drop any remaining pointers
|
||||
Shot::deleteShots.clear();
|
||||
backdropQuad = 0;
|
||||
clearObsRows();
|
||||
|
@ -10887,7 +10887,7 @@ void Game::removeState()
|
|||
|
||||
debugLog("killAllShots");
|
||||
Shot::killAllShots();
|
||||
Shot::clearShotGarbage();
|
||||
Shot::clearShotGarbage(); // make sure there are no pointers left (would lead to a crash on shutdown otherwise)
|
||||
debugLog("killAllBeams");
|
||||
Beam::killAllBeams();
|
||||
debugLog("killAllWebs");
|
||||
|
|
|
@ -230,6 +230,8 @@ void ShotData::bankLoad(const std::string &file, const std::string &path)
|
|||
damageType = DT_ENEMY_CREATOR;
|
||||
else if (bt == "DT_ENEMY_MANTISBOMB")
|
||||
damageType = DT_ENEMY_MANTISBOMB;
|
||||
else
|
||||
damageType = (DamageType)atoi(bt.c_str());
|
||||
}
|
||||
else if (token == "Invisible")
|
||||
inf >> invisible;
|
||||
|
|
Loading…
Reference in a new issue