stratagus-cvs
[Top][All Lists]
Advanced

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

[Stratagus-CVS] stratagus/src/ui mainscr.c


From: address@hidden
Subject: [Stratagus-CVS] stratagus/src/ui mainscr.c
Date: 29 Jan 2004 18:20:33 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/01/29 18:20:33

Modified files:
        src/ui         : mainscr.c 

Log message:
        Added UnitNumber to display in debug
        Fixed bug building a resource platform, % Complete bar was not drawn

Patches:
Index: stratagus/src/ui/mainscr.c
diff -u stratagus/src/ui/mainscr.c:1.155 stratagus/src/ui/mainscr.c:1.156
--- stratagus/src/ui/mainscr.c:1.155    Sat Jan 24 10:35:03 2004
+++ stratagus/src/ui/mainscr.c  Thu Jan 29 18:20:33 2004
@@ -27,7 +27,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//      $Id: mainscr.c,v 1.155 2004/01/23 23:35:03 wizzard Exp $
+//      $Id: mainscr.c,v 1.156 2004/01/29 07:20:33 wizzard Exp $
 
 //@{
 
@@ -254,6 +254,11 @@
                VideoDrawTextCentered(x + 114, y + 8 + 33, GameFont, buf);
        }
 
+#ifdef DEBUG
+       // Draw Unit Number for debug Purposes
+       VideoDrawNumber(x + 10, y + 8 + 150, GameFont, unit->Slot);
+#endif
+
        //
        //              Show How much a resource has left for owner and neutral.
        //
@@ -270,7 +275,9 @@
                        } else {
                                VideoDrawNumber(x + 108, y + 8 + 78, GameFont, 
unit->Value);
                        }
-                       return;
+                       if (unit->Orders[0].Action != UnitActionBuilded) {
+                               return;
+                       }
                }
        }
 




reply via email to

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