mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-26 23:00:30 +00:00
CThug::SetAttacker
This commit is contained in:
parent
5b01606c6b
commit
11251c686b
11
logger.sh
Normal file
11
logger.sh
Normal file
@ -0,0 +1,11 @@
|
||||
ok=$(grep -R "@Ok" *.cpp | wc -l)
|
||||
notok=$(grep -R "@NotOk" *.cpp | wc -l)
|
||||
btodo=$(grep -R "@BIGTODO" *.cpp | wc -l)
|
||||
mtodo=$(grep -R "@MEDIUMTODO" *.cpp | wc -l)
|
||||
stodo=$(grep -R "@SMALLTODO" *.cpp | wc -l)
|
||||
|
||||
echo "@Ok $ok"
|
||||
echo "@NotOk $notok"
|
||||
echo "@BIGTODO $btodo"
|
||||
echo "@MEDIUMTODO $mtodo"
|
||||
echo "@SMALLTODO $stodo"
|
19
thug.cpp
19
thug.cpp
@ -10,6 +10,23 @@
|
||||
#include "spidey.h"
|
||||
|
||||
extern CPlayer* MechList;
|
||||
EXPORT CThug* gGlobalThug;
|
||||
|
||||
// @Ok
|
||||
INLINE void CThug::SetAttacker(void)
|
||||
{
|
||||
if (gGlobalThug != this)
|
||||
{
|
||||
this->ClearAttackFlags();
|
||||
if (gGlobalThug)
|
||||
{
|
||||
gGlobalThug->ClearAttackFlags();
|
||||
}
|
||||
|
||||
gGlobalThug = this;
|
||||
this->field_3BC = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// @Ok
|
||||
INLINE i32 CThug::SpideyAnimUppercut(void)
|
||||
@ -700,13 +717,11 @@ void CThugPing::Move(void)
|
||||
this->Die();
|
||||
}
|
||||
|
||||
static CThug* gGlobalThug;
|
||||
static unsigned char gAttackFlagRelated;
|
||||
|
||||
// @Ok
|
||||
void CThug::ClearAttackFlags(void)
|
||||
{
|
||||
|
||||
if ( gGlobalThug == this )
|
||||
{
|
||||
gGlobalThug = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user