Skip to content

[TF2] Fix engineer building damage effects and placement previews not updating correctly #1280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/game/client/tf/c_baseobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ void C_BaseObject::UpdateOnRemove( void )
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void C_BaseObject::PreDataUpdate( DataUpdateType_t updateType )
void C_BaseObject::OnPreDataChanged( DataUpdateType_t updateType )
{
BaseClass::PreDataUpdate( updateType );
BaseClass::OnPreDataChanged( updateType );

m_iOldHealth = m_iHealth;
m_hOldOwner = GetOwner();
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/tf/c_baseobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class C_BaseObject : public C_BaseCombatCharacter, public IHasBuildPoints, publi
void SetObjectSequence( int sequence );
virtual void ResetClientsideFrame( void );

virtual void PreDataUpdate( DataUpdateType_t updateType );
virtual void OnPreDataChanged( DataUpdateType_t updateType );
virtual void OnDataChanged( DataUpdateType_t updateType );

virtual int GetHealth() const { return m_iHealth; }
Expand Down