]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CGame.cpp
Fix building pak.exe.
[quix0rs-blobwars.git] / src / CGame.cpp
index b75820da037c620dd94def504354d7da7e99679e..666f1eca9e3700f2bdeb94fd1127cad300f5baca 100644 (file)
@@ -1,5 +1,6 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -29,16 +30,6 @@ Game::Game()
 
        gore = 1;
        skill = 1;
-#ifdef SDL_FRAMEWORK
-       float r,g,b;
-       if (SDL_GetGamma(&r, &g, &b) != -1) {
-               if (r != g || g != b) {
-                       brightness = -1;
-               } else {
-                       brightness = 10 * r;
-               }
-       }
-#endif
 
        clear();
 }
@@ -117,7 +108,7 @@ void Game::setCheckPoint(float x, float y)
        checkPointY = (int)y;
 }
 
-void Game::getCheckPoint(float *x, float *y)
+void Game::getCheckPoint(float *x, float *y) const
 {
        *x = checkPointX;
        *y = checkPointY;
@@ -159,7 +150,7 @@ int Game::getWeaponAccuracy(int weapon)
        return 0;
 }
 
-int Game::getTotalBulletsFired()
+int Game::getTotalBulletsFired() const
 {
        return bulletsFired[0] + bulletsFired[1] + bulletsFired[2] + bulletsFired[3] + bulletsFired[4];
 }