mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-10 16:19:59 +00:00
Remove some dead code + fix clang warning.
This commit is contained in:
parent
b199e40efd
commit
1168eaf1d9
7 changed files with 1 additions and 184 deletions
|
@ -2997,40 +2997,6 @@ int Continuity::getPathFlag(Path *p)
|
|||
return entityFlags[os2.str()];
|
||||
}
|
||||
|
||||
SporeChildData *Continuity::getSporeChildDataForEntity(Entity *e)
|
||||
{
|
||||
SporeChildData *scd=0;
|
||||
for (int i = 0; i < sporeChildData.size(); i++)
|
||||
{
|
||||
if (sporeChildData[i].entity == e)
|
||||
{
|
||||
scd = &sporeChildData[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
return scd;
|
||||
}
|
||||
|
||||
void Continuity::registerSporeChildData(Entity *e)
|
||||
{
|
||||
if (!dsq->game->creatingSporeChildren)
|
||||
{
|
||||
SporeChildData *scd=0;
|
||||
if (!(scd = getSporeChildDataForEntity(e)))
|
||||
{
|
||||
SporeChildData d;
|
||||
sporeChildData.push_back(d);
|
||||
scd = &sporeChildData[sporeChildData.size()-1];
|
||||
}
|
||||
if (scd)
|
||||
{
|
||||
scd->state = e->getState();
|
||||
scd->health = e->health;
|
||||
scd->entity = e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class GemGet : public Quad
|
||||
{
|
||||
public:
|
||||
|
@ -3285,7 +3251,6 @@ void Continuity::reset()
|
|||
loadPetData();
|
||||
|
||||
formUpgrades.clear();
|
||||
sporeChildData.clear();
|
||||
|
||||
auraType = AURA_NONE;
|
||||
for (int i = 0; i < MAX_FLAGS; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue