stratagus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Stratagus-CVS] stratagus/src/stratagus script.c


From: address@hidden
Subject: [Stratagus-CVS] stratagus/src/stratagus script.c
Date: 29 Jan 2004 08:39:28 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/01/29 08:39:28

Modified files:
        src/stratagus  : script.c 

Log message:
        Loadgame update, puds do not need to be loaded, ALL info is in the 
savegame

Patches:
Index: stratagus/src/stratagus/script.c
diff -u stratagus/src/stratagus/script.c:1.171 
stratagus/src/stratagus/script.c:1.172
--- stratagus/src/stratagus/script.c:1.171      Wed Jan 28 04:32:44 2004
+++ stratagus/src/stratagus/script.c    Thu Jan 29 08:39:27 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//      $Id: script.c,v 1.171 2004/01/27 17:32:44 jsalmon3 Exp $
+//      $Id: script.c,v 1.172 2004/01/28 21:39:27 wizzard Exp $
 
 //@{
 
@@ -254,9 +254,8 @@
                if (!strcmp(value, "SaveFile")) {
                        value = LuaToString(l, -1);
                        strcpy(CurrentMapPath, value);
-                       if (strcasestr(value, ".pud")) {
-                               //LoadPud(LibraryFileName(value, buf), &TheMap);
-                       } else {
+                       // If .pud, we don't need to load anything from it
+                       if (!strcasestr(value, ".pud")) {
                                LibraryFileName(value, buf);
                                if (LuaLoadFile(buf) == -1) {
                                        DebugLevel0Fn("Load failed: %s" _C_ 
value);
@@ -1407,7 +1406,7 @@
        }
 
        fprintf(fd, "--- -----------------------------------------\n");
-       fprintf(fd, "--- $Id: script.c,v 1.171 2004/01/27 17:32:44 jsalmon3 Exp 
$\n");
+       fprintf(fd, "--- $Id: script.c,v 1.172 2004/01/28 21:39:27 wizzard Exp 
$\n");
 
        fprintf(fd, "SetVideoResolution(%d, %d)\n", VideoWidth, VideoHeight);
 
@@ -1431,7 +1430,7 @@
        }
 
        fprintf(fd, "--- -----------------------------------------\n");
-       fprintf(fd, "--- $Id: script.c,v 1.171 2004/01/27 17:32:44 jsalmon3 Exp 
$\n");
+       fprintf(fd, "--- $Id: script.c,v 1.172 2004/01/28 21:39:27 wizzard Exp 
$\n");
 
        // Global options
        if (OriginalFogOfWar) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]