Diff of /game.h [67f7aa] .. [5fe85c]  Maximize  Restore

Switch to side-by-side view

--- a/game.h
+++ b/game.h
@@ -30,7 +30,7 @@
   int journalcount;
   int pcstructcount, npcstructcount;
   int pcextensioncount, npcextensioncount;
-  int sloccount;
+  int sloccount, ppcount;
 
   gam_variable *variables, *deathvariables;
   gam_npc *pcs, *npcs;
@@ -38,6 +38,7 @@
   gam_mazedata *mazedata;
   gam_journal *journals;
   gam_sloc *slocs;
+  gam_sloc *pplocs;
   char **npcstructs;
   char **pcstructs;
   gam_npc_extension *pcextensions, *npcextensions;
@@ -172,6 +173,15 @@
       sloccount=0;
     }
   }
+  inline void KillPPLocs()
+  {
+    if(pplocs)
+    {
+      delete[] pplocs;
+      pplocs=NULL;
+      ppcount=0;
+    }
+  }
 private:
   int ReadCreData(int offset, int size, char *&pointer,int &fullsize);
   int ReadExtension(char *pointer, int &fullsize, int mysize);

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks