Some further small fizes to resolution //Tobias

This commit is contained in:
viktorljung
2016-01-25 01:26:41 +01:00
parent 6aeb281249
commit d12246833e
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ bool WeaponSystem::OnInputCommand(const Events::InputCommand& e)
bool WeaponSystem::OnShoot(const Events::Shoot& eShoot) {
// Screen center, based on current resolution!
//TODO: check if player has enough ammo and if weapon has a cooldown or not
Rectangle screenResolution = m_Renderer->Resolution();
Rectangle screenResolution = m_Renderer->GetViewPortSize();
glm::vec2 centerScreen = glm::vec2(screenResolution.Width / 2, screenResolution.Height / 2);
// TODO: check if player has enough ammo and if weapon has a cooldown or not