Change ReleaseToken to return bool

This commit is contained in:
Louis Hobbs 2023-08-21 23:42:48 +01:00
parent 763c8db97e
commit ca07abb131
2 changed files with 4 additions and 2 deletions

View File

@ -14,12 +14,14 @@ bool UNakatomiAIAttackTokenManager::RequestToken()
return true; return true;
} }
void UNakatomiAIAttackTokenManager::ReleaseToken() bool UNakatomiAIAttackTokenManager::ReleaseToken()
{ {
if (attackTokensUsed > 0) if (attackTokensUsed > 0)
{ {
attackTokensUsed--; attackTokensUsed--;
} }
return false;
} }
void UNakatomiAIAttackTokenManager::Reset() void UNakatomiAIAttackTokenManager::Reset()

View File

@ -25,7 +25,7 @@ public:
bool RequestToken(); bool RequestToken();
void ReleaseToken(); bool ReleaseToken();
void Reset(); void Reset();