Only allow player to shoot if player does not have any projectiles pending
This commit is contained in:
1 parent
3e22ad70e1
commit
cf3f64fed9
4 files changed
+58
-24
No files matched your search
@@ -20,5 +20,6 @@ Player::Player()
|
||||
m_shot_start_x = 0.0;
|
||||
m_shot_start_y = 0.0;
|
||||
m_shot_direction = 0.0;
|
||||
m_shot_allowed = true;
|
||||
|
||||
}
|
||||
+1
-1
@@ -26,7 +26,7 @@ class Player
|
||||
double m_shot_start_y;
|
||||
double m_shot_direction;
|
||||
double m_shot_start_time;
|
||||
|
||||
bool m_shot_allowed;
|
||||
|
||||
Player();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user