summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-02-11 14:04:40 +0000
committertruelight <truelight@openttd.org>2007-02-11 14:04:40 +0000
commit750f61012e0304f72338528f84935244a2cbf2b8 (patch)
tree01c3a8d551757ae9a838aee91bb0027c817bbba9
parentc8c9c0c8316b8d43c53a7fd83eeecdbb8c5d1d36 (diff)
downloadopenttd-750f61012e0304f72338528f84935244a2cbf2b8.tar.xz
(svn r8675) [PSP] -Fix: don't autosave in networking for PSP, to time expensive
-rw-r--r--src/openttd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index b147b994d..be9cd54ea 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -934,6 +934,12 @@ static void DoAutosave(void)
{
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;