Diff of /creature.cpp [021d66] .. [dcf4db]  Maximize  Restore

  Switch to side-by-side view

--- a/creature.cpp
+++ b/creature.cpp
@@ -168,6 +168,12 @@
   header.itemslots=fullsize;
   esize=sizeof(short)*slotcount+sizeof(long);
   fullsize+=esize;
+  if (revision==12)
+  {
+    pstheader.overlaysize=pst_overlay_size;
+    pstheader.overlayoffs=fullsize;
+    fullsize+=pstheader.overlaysize;
+  }
 
   if(calculate&2)
   {
@@ -297,6 +303,13 @@
   if(write(fhandle, itemslots, esize )!=esize )
   {
     return -2;
+  }
+  if (revision==12)
+  {
+    if(write(fhandle, pst_overlay_data, pst_overlay_size)!=pst_overlay_size)
+    {
+      return -2;
+    }
   }
   m_changed=false;
   return 0;

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

Sign up for the SourceForge newsletter:





No, thanks