stratagus-cvs
[Top][All Lists]
Advanced

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

[Stratagus-CVS] stratagus/tools wartool.c


From: Nehal Mistry
Subject: [Stratagus-CVS] stratagus/tools wartool.c
Date: Sat, 22 Nov 2003 16:24:40 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Nehal Mistry <address@hidden>   03/11/22 16:24:40

Modified files:
        tools          : wartool.c 

Log message:
        convert index 0 to 255 only for tilesets

Patches:
Index: stratagus/tools/wartool.c
diff -u stratagus/tools/wartool.c:1.110 stratagus/tools/wartool.c:1.111
--- stratagus/tools/wartool.c:1.110     Fri Nov 21 22:00:25 2003
+++ stratagus/tools/wartool.c   Sat Nov 22 16:24:39 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: wartool.c,v 1.110 2003/11/22 03:00:25 nehalmistry Exp $
+//     $Id: wartool.c,v 1.111 2003/11/22 21:24:39 nehalmistry Exp $
 
 //@{
 
@@ -1667,11 +1667,13 @@
     }
 
 #ifdef USE_SDL_SURFACE
-    // So the engine doesn't need to support 2 transparent indexes
-    for (i = 0; i < h; ++i) {
-       for (j = 0; j < w; ++j) {
-           if (!image[j + i * w]) {
-               image[j + i * w] = 255;
+    // To fix fog of war
+    if (w == 512 && h == 768) {
+       for (i = 0; i < 32; ++i) {
+           for (j = 32; j < w; ++j) {
+               if (!image[j + i * w]) {
+                   image[j + i * w] = 255;
+               }
            }
        }
     }




reply via email to

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