初步修复
This commit is contained in:
parent
8fc4357cc6
commit
e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions
29
GameCommon/PvPRespawnModeScoreSystem.cpp
Normal file
29
GameCommon/PvPRespawnModeScoreSystem.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
#include "stdafx.h"
|
||||
#include "PvPRespawnModeScoreSystem.h"
|
||||
#include "DnActor.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)
|
||||
#endif
|
||||
void CPvPRespawnModeScoreSystem::OnDie( DnActorHandle hActor, DnActorHandle hHitter )
|
||||
{
|
||||
if( !hActor )
|
||||
return;
|
||||
|
||||
int iTeam = hActor->GetTeam();
|
||||
|
||||
switch( iTeam )
|
||||
{
|
||||
case PvPCommon::Team::A:
|
||||
{
|
||||
++m_uiScore[PvPCommon::TeamIndex::B];
|
||||
break;
|
||||
}
|
||||
case PvPCommon::Team::B:
|
||||
{
|
||||
++m_uiScore[PvPCommon::TeamIndex::A];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue