Only saved pods respawned for 4 levels.
authorlimb <limb@bc5cbbab-a4ec-0310-bb52-ff3d296db539>
Sat, 10 Feb 2007 23:44:02 +0000 (23:44 +0000)
committerlimb <limb@bc5cbbab-a4ec-0310-bb52-ff3d296db539>
Sat, 10 Feb 2007 23:44:02 +0000 (23:44 +0000)
git-svn-id: svn+ssh://svn/var/repos/curfender@632 bc5cbbab-a4ec-0310-bb52-ff3d296db539

CHANGELOG
main.cpp

index 02831b7..a5aebb8 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,5 @@
+Only saved pods respawned for 4 levels.
+Copyright info.
 Tripleshot, shield, life, smartbomb powerups.
 Landers don't fire while chasing pods.
 Implemented triple shot.  Needs powerup to activate.
index 7ef7c0a..9592599 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -1,3 +1,23 @@
+/* 
+   Curfender
+   Copyright (C) 2007 Jonathan Ciesla
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+   
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of 
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
+   General Public License for more details.
+   
+   You should have received a copy of the GNU General Public License 
+   along with this program; if not, write to the Free Software 
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 
+   02110-1301, USA 
+   
+*/
+
 #include <ncurses.h>
 #include <cstring>
 #include <cstdlib>
@@ -1515,7 +1535,11 @@ int main(){
          //Advance level
          level++;
          //Reactivate pods if not zombied
-         for(int podloop = 0; podloop<podmax; podloop++){ pods[podloop] = pod_init(pods[podloop]); };
+         if(level % 4 == 0){
+           for(int podloop = 0; podloop<podmax; podloop++){ pods[podloop] = pod_init(pods[podloop]); };
+         } else {
+           for(int podloop = 0; podloop<podsin; podloop++){ pods[podloop] = pod_init(pods[podloop]); };
+         };
          podsin = 0;
          //Bump shields
          if(shieldsleft<=450){