Add timer reset function for the player. Fix black box player afterimage being visible. Release Build 10971.
This commit is contained in:
parent
d28b308ecb
commit
e8ffeef5c9
@ -2435,6 +2435,7 @@ void AiL::_PrepareLevel(MapName map,MusicChange changeMusic){
|
||||
GetPlayer()->SetInvisible(false);
|
||||
GetPlayer()->ResetVelocity();
|
||||
GetPlayer()->RemoveAllBuffs();
|
||||
GetPlayer()->ResetTimers();
|
||||
|
||||
STEAMINPUT( //This is kind of a hack to refresh the in-game controls handle and button icons if for some reason it's not setup correctly.
|
||||
Input::LoadSteamButtonIcons();
|
||||
|
@ -116,6 +116,10 @@ void Player::Initialize(){
|
||||
SetBaseStat("Attack Spd",0);
|
||||
cooldownSoundInstance=Audio::Engine().LoadSound("spell_cast.ogg"_SFX);
|
||||
afterImage.Create(24,24);
|
||||
for(Pixel&p:afterImage.Sprite()->pColData){
|
||||
p.a=0;
|
||||
}
|
||||
afterImage.Decal()->Update();
|
||||
}
|
||||
|
||||
void Player::InitializeMinimapImage(){
|
||||
@ -2067,3 +2071,7 @@ void Player::RunTimers(){
|
||||
timer.Update(game->GetElapsedTime());
|
||||
}
|
||||
}
|
||||
|
||||
void Player::ResetTimers(){
|
||||
timers.clear();
|
||||
}
|
@ -317,6 +317,7 @@ public:
|
||||
Timer&AddTimer(const TimerType type,const Timer&timer);
|
||||
Timer&GetTimer(const TimerType type);
|
||||
void CancelTimer(const TimerType type);
|
||||
void ResetTimers();
|
||||
private:
|
||||
int hp="Warrior.BaseHealth"_I;
|
||||
int mana="Player.BaseMana"_I;
|
||||
|
@ -39,7 +39,7 @@ All rights reserved.
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 2
|
||||
#define VERSION_PATCH 3
|
||||
#define VERSION_BUILD 10969
|
||||
#define VERSION_BUILD 10971
|
||||
|
||||
#define stringify(a) stringify_(a)
|
||||
#define stringify_(a) #a
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user