Debugging the bullets.
authorlimb <limb@bc5cbbab-a4ec-0310-bb52-ff3d296db539>
Mon, 4 Dec 2006 17:00:46 +0000 (17:00 +0000)
committerlimb <limb@bc5cbbab-a4ec-0310-bb52-ff3d296db539>
Mon, 4 Dec 2006 17:00:46 +0000 (17:00 +0000)
git-svn-id: svn+ssh://svn/var/repos/curfender@555 bc5cbbab-a4ec-0310-bb52-ff3d296db539

main.cpp

index 1654d67..32a6553 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -422,8 +422,8 @@ int main(){
   };
   
   for(int bulletloop = 1; bulletloop<8; bulletloop=bulletloop+2){ 
-    strcpy (pods[bulletloop].line0, " - ");
-    strcpy (pods[bulletloop].line1, " - ");
+    strcpy (bullets[bulletloop].line0, " - ");
+    strcpy (bullets[bulletloop].line1, " - ");
   };
 
 
@@ -433,7 +433,7 @@ int main(){
 
   int loopvar = 0;
   int input = 0;
-  int podloop = 0;
+  int lastkey = 0;
 
   int podcount = 0;
 
@@ -480,7 +480,7 @@ int main(){
     for(int podloop = 0; podloop<8; podloop++){ radar_plot(pods[podloop], drawlocation); };
 
     //debug
-    //mvprintw(21,1,"y:%d drawloc:%d", pod2.y, drawlocation);
+    //mvprintw(21,1,"Lastkey:%d", lastkey);
 
     //get the cursor out of the way
     mvprintw(23,79,"|");
@@ -523,7 +523,10 @@ int main(){
       };
     };
     //check for / process player fire
-    
+    if(input=='9'){
+      //we fired
+    };
+
     //check for 0 active pods, saved pods, level victory
     podcount = 0;
     for(int podloop = 0; podloop<8; podloop++){ podcount = podcount + pods[podloop].active; };