Skip to content

Commit

Permalink
Added const to methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarskih committed May 26, 2018
1 parent 3d7f28b commit 88db5c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion game/state/city/vequipment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void VEquipment::update(int ticks)
}
}

void VEquipment::noAmmoToReload(GameState &state, VEquipment *equipment) const
void VEquipment::noAmmoToReload(const GameState &state, const VEquipment *equipment) const
{
switch (equipment->type->type)
{
Expand Down
2 changes: 1 addition & 1 deletion game/state/city/vequipment.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class VEquipment : public Equipment
void update(int ticks);
void setReloadTime(int ticks);
// This sends alerts when not enough ammo to reload weapon or engine
void noAmmoToReload(GameState &state, VEquipment *equipment) const;
void noAmmoToReload(const GameState &state, const VEquipment *equipment) const;
// Reload uses up to 'ammoAvailable' to reload the weapon. It returns the amount
// actually used.
int reload(int ammoAvailable);
Expand Down

0 comments on commit 88db5c6

Please sign in to comment.