minor fixes

This commit is contained in:
devZoGok
2021-11-03 21:29:46 +02:00
parent d4d8c228cc
commit 20a1a036f4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -404,7 +404,7 @@ namespace battleship{
if (cursorPos.y <= 0 && 0 < cursorPos.x && cursorPos.x < width)
cam->setPosition(cam->getPosition() + (forwVec.norm()) * camPanSpeed);
if (cursorPos.y > height && 0 < cursorPos.x && cursorPos.x < width)
if (cursorPos.y >= height && 0 < cursorPos.x && cursorPos.x < width)
cam->setPosition(cam->getPosition() - (forwVec.norm()) * camPanSpeed);
}
+1 -1
View File
@@ -4,7 +4,7 @@
#include "gameManager.h"
#include "guiAppState.h"
#include "stateManager.h"
#include "eventListener.h"
#include "inputManager.h"
using namespace std;
using namespace vb01;