]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/mission.cpp
Added .gitignore to ignore certain files + fixed access rights on Makefile* as
[quix0rs-blobwars.git] / src / mission.cpp
index 6321a554d8cccf060528223b59002578245dfc15..4519b24181f96b877c41bce3fef1fb4e43b48a24 100644 (file)
@@ -1,5 +1,6 @@
 /*
 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
@@ -176,7 +177,6 @@ void showMissionClear()
        int y = 520;
        int miaY = 335;
        int clearY = 520;
-       Objective *objective = (Objective*)map.objectiveList.getHead();
        Entity *mia = (Entity*)map.miaList.getHead();
        Sprite *teleportStar = graphics.getSprite("TeleportStar", true);
        char message[256];
@@ -211,9 +211,6 @@ void showMissionClear()
                place += 25;
        }
 
-       if (count > colCount)
-               count = colCount;
-
        if (place > (colCount * 25))
                place = colCount * 25;
 
@@ -247,7 +244,7 @@ void showMissionClear()
                }
        }
 
-       objective = (Objective*)map.objectiveList.getHead();
+       Objective *objective = (Objective*)map.objectiveList.getHead();
 
        engine.setPlayerPosition(0, 0, -1, -1, -1, -1);