Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /Chitem.cpp [80baa6] .. [d5d988] Maximize Restore

  Switch to side-by-side view

--- a/Chitem.cpp
+++ b/Chitem.cpp
@@ -4205,6 +4205,20 @@
     }
   }
   return ret;
+}
+
+int GetLightMap(bool night)
+{
+  if(night==the_area.m_night) return 0;
+  if(the_area.changedmap[MT_LIGHT] )
+  {
+    if(MessageBox(0,"Do you want to discard the changes made on the other lightmap?","Area editor",MB_YESNO)==IDNO)
+    {
+      return -99;
+    }
+  }
+  the_area.m_night=night;
+  return ReadWed(0);
 }
 
 int GetWed(bool night)