(svn r8675) [PSP] -Fix: don't autosave in networking for PSP, to time expensive
authortruelight
Sun, 11 Feb 2007 14:04:40 +0000
changeset 5977 3419c6dfa9ec
parent 5976 aa1cae2b975a
child 5978 47de4dea6ff9
(svn r8675) [PSP] -Fix: don't autosave in networking for PSP, to time expensive
src/openttd.cpp
--- a/src/openttd.cpp	Sun Feb 11 13:57:35 2007 +0000
+++ b/src/openttd.cpp	Sun Feb 11 14:04:40 2007 +0000
@@ -934,6 +934,12 @@
 {
 	char buf[200];
 
+#if defined(PSP)
+	/* Autosaving in networking is too time expensive for the PSP */
+	if (_networking)
+		return;
+#endif /* PSP */
+
 	if (_patches.keep_all_autosave && _local_player != PLAYER_SPECTATOR) {
 		const Player *p = GetPlayer(_local_player);
 		char* s = buf;