Advertisement
Guest User

Fix tile world 2 preventing of loading single file

a guest
Mar 17th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.96 KB | None | 0 0
  1. From 5d2b67416ddc990581860db738cca14088bd59a7 Mon Sep 17 00:00:00 2001
  2. From: Harry Bullen <hbullen@gmail.com>
  3. Date: Sat, 17 Mar 2012 17:27:57 -0400
  4. Subject: [PATCH] Fix bug in tworld 2 preventing the loading of a specific
  5.  level
  6.  
  7. ---
  8.  tworld.c |    7 ++++++-
  9.  1 file changed, 6 insertions(+), 1 deletion(-)
  10.  
  11. diff --git a/tworld.c b/tworld.c
  12. index d477659..35a7aa7 100644
  13. --- a/tworld.c
  14. +++ b/tworld.c
  15. @@ -1688,7 +1688,12 @@ static int choosegameatstartup(gamespec *gs, startupdata const *start)
  16.     return 0;
  17.      }
  18.  
  19. -    if (series.count == 1) {
  20. +    /* If their is only one game series and we are going to do something
  21. +     * special with it.  Otherwise the readseriesfile call messes up game
  22. +     * state.
  23. +     */
  24. +    if (series.count == 1 &&
  25. +       (start->batchverify || start->listscores || start->listtimes) ) {
  26.     if (start->savefilename)
  27.         series.list[0].savefilename = start->savefilename;
  28.     if (!readseriesfile(series.list)) {
  29. --
  30. 1.7.9.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement