(svn r8918) -Revert r8914 as the inverted files have been committed not the correct one.
authorDarkvater
Tue, 27 Feb 2007 16:05:20 +0000
changeset 6164 5c074184856f
parent 6163 bb14fd7d587d
child 6165 9c245e46bb23
(svn r8918) -Revert r8914 as the inverted files have been committed not the correct one.
src/newgrf_gui.cpp
src/saveload.cpp
--- a/src/newgrf_gui.cpp	Tue Feb 27 15:17:06 2007 +0000
+++ b/src/newgrf_gui.cpp	Tue Feb 27 16:05:20 2007 +0000
@@ -485,9 +485,6 @@
 			break;
 
 		case WE_DESTROY:
-			if (!WP(w, newgrf_d).execute) {
-				CopyGRFConfigList(WP(w, newgrf_d).orig_list, *WP(w, newgrf_d).list);
-			}
 			/* Remove the temporary copy of grf-list used in window */
 			ClearGRFConfigList(WP(w, newgrf_d).list);
 			break;
--- a/src/saveload.cpp	Tue Feb 27 15:17:06 2007 +0000
+++ b/src/saveload.cpp	Tue Feb 27 16:05:20 2007 +0000
@@ -1593,8 +1593,13 @@
 			/* No loader found, treat as version 0 and use LZO format */
 			if (fmt == endof(_saveload_formats)) {
 				DEBUG(sl, 0, "Unknown savegame type, trying to load it as the buggy format");
-
+#if defined(WINCE)
+				/* Of course some system had not to support rewind ;) */
+				fseek(_sl.fh, 0L, SEEK_SET);
+				clearerr(_sl.fh);
+#else
 				rewind(_sl.fh);
+#endif
 				_sl_version = 0;
 				_sl_minor_version = 0;
 				fmt = _saveload_formats + 1; // LZO