stratagus-cvs
[Top][All Lists]
Advanced

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

[Stratagus-CVS] stratagus/src/unit unittype.c


From: Nehal Mistry
Subject: [Stratagus-CVS] stratagus/src/unit unittype.c
Date: Thu, 20 Nov 2003 02:27:25 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Nehal Mistry <address@hidden>   03/11/20 02:27:25

Modified files:
        src/unit       : unittype.c 

Log message:
        fix error

Patches:
Index: stratagus/src/unit/unittype.c
diff -u stratagus/src/unit/unittype.c:1.128 stratagus/src/unit/unittype.c:1.129
--- stratagus/src/unit/unittype.c:1.128 Thu Nov 20 01:43:42 2003
+++ stratagus/src/unit/unittype.c       Thu Nov 20 02:27:24 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: unittype.c,v 1.128 2003/11/20 06:43:42 nehalmistry Exp $
+//     $Id: unittype.c,v 1.129 2003/11/20 07:27:24 nehalmistry Exp $
 
 //@{
 
@@ -1197,7 +1197,7 @@
     char** sp;
 
     CLprintf(file, "\n;;; -----------------------------------------\n");
-    CLprintf(file, ";;; MODULE: unittypes $Id: unittype.c,v 1.128 2003/11/20 
06:43:42 nehalmistry Exp $\n\n");
+    CLprintf(file, ";;; MODULE: unittypes $Id: unittype.c,v 1.129 2003/11/20 
07:27:24 nehalmistry Exp $\n\n");
 
     // Original number to internal unit-type name.
 
@@ -1371,7 +1371,9 @@
            ShowLoadProgress("Unit `%s'", file);
            type->ShadowSprite = LoadSprite(file, type->ShadowWidth,
                type->ShadowHeight);
+#ifdef USE_SDL_SURFACE
            FlipGraphic(type->ShadowSprite);
+#endif
        }
 
        //  Load empty/loaded graphics
@@ -1383,14 +1385,18 @@
                        ShowLoadProgress("Unit `%s'", file);
                        resinfo->SpriteWhenLoaded = LoadSprite(file, 
type->Width,
                            type->Height);
+#ifdef USE_SDL_SURFACE
                        FlipGraphic(resinfo->SpriteWhenLoaded);
+#endif
                    }
                    if ((file = resinfo->FileWhenEmpty)) {
                        file = strcat(strcpy(buf, "graphics/"), file);
                        ShowLoadProgress("Unit `%s'", file);
                        resinfo->SpriteWhenEmpty = LoadSprite(file, type->Width,
                            type->Height);
+#ifdef USE_SDL_SURFACE
                        FlipGraphic(resinfo->SpriteWhenEmpty);
+#endif
                    }
                }
            }
@@ -1418,7 +1424,9 @@
            file = strcat(strcpy(buf, "graphics/"), file);
            ShowLoadProgress("Unit `%s'", file);
            type->Sprite = LoadSprite(file, type->Width, type->Height);
+#ifdef USE_SDL_SURFACE
            FlipGraphic(type->Sprite);
+#endif
        }
     }
 




reply via email to

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