Change ReleaseToken to return bool
This commit is contained in:
parent
763c8db97e
commit
ca07abb131
|
@ -14,12 +14,14 @@ bool UNakatomiAIAttackTokenManager::RequestToken()
|
|||
return true;
|
||||
}
|
||||
|
||||
void UNakatomiAIAttackTokenManager::ReleaseToken()
|
||||
bool UNakatomiAIAttackTokenManager::ReleaseToken()
|
||||
{
|
||||
if (attackTokensUsed > 0)
|
||||
{
|
||||
attackTokensUsed--;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void UNakatomiAIAttackTokenManager::Reset()
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
|
||||
bool RequestToken();
|
||||
|
||||
void ReleaseToken();
|
||||
bool ReleaseToken();
|
||||
|
||||
void Reset();
|
||||
|
||||
|
|
Loading…
Reference in New Issue