damagedealt = 0;
damagetaken = 0;
- if (accountactive)
- difficulty = accountactive->getDifficulty();
+ if (Account::active)
+ difficulty = Account::active->getDifficulty();
Hotspot::hotspots.clear();
Hotspot::current = -1;
if (changedelay > 0 && !Person::players[0]->dead && !won) {
//high scores, awards, win
if (campaign) {
- accountactive->winCampaignLevel(whichchoice, bonustotal, leveltime);
+ Account::active->winCampaignLevel(whichchoice, bonustotal, leveltime);
scoreadded = 1;
} else {
wonleveltime = leveltime;
- accountactive->winLevel(whichlevel, bonustotal - startbonustotal, leveltime);
+ Account::active->winLevel(whichlevel, bonustotal - startbonustotal, leveltime);
}
won = 1;
}
fireSound(firestartsound);
- Loadlevel(campaignlevels[accountactive->getCampaignChoicesMade()].mapname.c_str());
+ Loadlevel(campaignlevels[Account::active->getCampaignChoicesMade()].mapname.c_str());
fireSound();