summaryrefslogtreecommitdiff
blob: 04414abc6a2b5ceed48f88423ff2f57feec1d80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/editorsave.cpp.old
+++ src/editorsave.cpp
@@ -642,7 +642,8 @@
     file << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
     file << "<pack>\n<name>"<< stripXML(editorboard::filetitle) <<"</name><author>"<< stripXML(editorboard::author) <<"</author>\n<description>"<< stripXML(editorboard::description) <<"</description>\n";
     
-    for (int i=first; i<editorboard::CountLevels(); i++) {
+    int i;
+    for (i=first; i<editorboard::CountLevels(); i++) {
         editorboard::LoadLevelNumber(board, i);
         file << "\n<level>\n";
         file << "<title>"<< stripXML(board->title) <<"</title>\n";
--- src/gen.cpp.old
+++ src/gen.cpp
@@ -21,6 +21,7 @@
 #include<cstdio>
 #include<iostream>
 #include<fstream>
+#include <unistd.h>
 
 const float F_RAND_MAX = (float)(RAND_MAX);