X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ffiles.c;h=d5118422d940e2021debdd88ac70a7793830aaf3;hb=e25161c4cc2371ce2ace1d9aae03f8539074af3c;hp=38b19f83c58c1429a246a833fef20bcdac685407;hpb=03a51cffeae04186383ded4280b3ebb923cdbc6f;p=rocksndiamonds.git diff --git a/src/files.c b/src/files.c index 38b19f83..d5118422 100644 --- a/src/files.c +++ b/src/files.c @@ -9094,7 +9094,7 @@ void LoadServerScore(int nr, boolean download_score) // (this should prevent reading it while the thread is writing to it) LoadServerScoreFromCache(nr); - if (download_score) + if (download_score && runtime.api_server) { // 2nd step: download server scores from score server to cache file // (as thread, as it might time out if the server is not reachable) @@ -9253,7 +9253,7 @@ static void UploadScoreToServerAsThread(int nr) void SaveServerScore(int nr) { - if (!setup.api_server) + if (!runtime.api_server) return; UploadScoreToServerAsThread(nr);