GetPlayerAmmo is now a SetPlayerAmmo instead to fix some potential problems if the player has no weapon at all
This commit is contained in:
@@ -50,7 +50,7 @@ private:
|
||||
//helper methods
|
||||
bool DoesPlayerHaveMaxAmmo(EntityWrapper &player);
|
||||
PlayerClass DetermineClass(EntityWrapper &player);
|
||||
int& GetPlayerAmmo(EntityWrapper &player);
|
||||
void SetPlayerAmmo(EntityWrapper &player, int ammoGain);
|
||||
int GetPlayerMaxAmmo(EntityWrapper &player);
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user