From e6ef0c68c37cc1f5c1f6c1cfd8290c6bf62d9493 Mon Sep 17 00:00:00 2001 From: Tamir Atias Date: Sun, 15 Apr 2012 04:36:37 +0300 Subject: [PATCH] [Fix] Tiles getting borders when scrolling. [Add] Allanis' String.* files to VC++ project. [Fix] String.cpp not compiling. --- Bin/VC10/VC10.vcxproj | 2 ++ Bin/VC10/VC10.vcxproj.filters | 6 ++++++ src/Main/Game.cpp | 2 +- src/System/String.cpp | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Bin/VC10/VC10.vcxproj b/Bin/VC10/VC10.vcxproj index 7223d26..8f8f235 100644 --- a/Bin/VC10/VC10.vcxproj +++ b/Bin/VC10/VC10.vcxproj @@ -109,6 +109,7 @@ + @@ -148,6 +149,7 @@ + diff --git a/Bin/VC10/VC10.vcxproj.filters b/Bin/VC10/VC10.vcxproj.filters index 629b8d9..29f0bce 100644 --- a/Bin/VC10/VC10.vcxproj.filters +++ b/Bin/VC10/VC10.vcxproj.filters @@ -171,6 +171,9 @@ System + + System + @@ -275,5 +278,8 @@ System + + System + \ No newline at end of file diff --git a/src/Main/Game.cpp b/src/Main/Game.cpp index 1a40b67..7e21ba5 100644 --- a/src/Main/Game.cpp +++ b/src/Main/Game.cpp @@ -74,7 +74,7 @@ void Game::Render(void) { if(xOffset > maxXOffset) xOffset = maxXOffset; if(yOffset > maxYOffset) yOffset = maxYOffset; - glTranslatef(-xOffset, -yOffset, 0.0f); + glTranslatef((int)-xOffset, (int)-yOffset, 0.0f); // Render our shit.. _level->Draw(xOffset, yOffset); diff --git a/src/System/String.cpp b/src/System/String.cpp index eac51f5..187e1ef 100644 --- a/src/System/String.cpp +++ b/src/System/String.cpp @@ -81,7 +81,7 @@ bool String::operator==(const char* value) const { } bool String::operator==(String& value) const { - if(strcmp(_string, value.GetPointer) == 0) { + if(strcmp(_string, value.GetPointer()) == 0) { return true; } return false;