stratagus-cvs
[Top][All Lists]
Advanced

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

[Stratagus-CVS] stratagus/src/clone unit_draw.c


From: Jimmy Salmon
Subject: [Stratagus-CVS] stratagus/src/clone unit_draw.c
Date: Mon, 13 Oct 2003 00:38:38 -0400

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Jimmy Salmon <address@hidden>   03/10/13 00:38:37

Modified files:
        src/clone      : unit_draw.c 

Log message:
        More cleanup

Patches:
Index: stratagus/src/clone/unit_draw.c
diff -u stratagus/src/clone/unit_draw.c:1.166 
stratagus/src/clone/unit_draw.c:1.167
--- stratagus/src/clone/unit_draw.c:1.166       Thu Oct  9 19:04:03 2003
+++ stratagus/src/clone/unit_draw.c     Mon Oct 13 00:38:37 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: unit_draw.c,v 1.166 2003/10/09 23:04:03 jsalmon3 Exp $
+//     $Id: unit_draw.c,v 1.167 2003/10/13 04:38:37 jsalmon3 Exp $
 
 //@{
 
@@ -577,20 +577,20 @@
 global void SaveDecorations(CLFile* file)
 {
     CLprintf(file, "\n;;; -----------------------------------------\n");
-    CLprintf(file, ";;; MODULE: decorations $Id: unit_draw.c,v 1.166 
2003/10/09 23:04:03 jsalmon3 Exp $\n\n");
+    CLprintf(file, ";;; MODULE: decorations $Id: unit_draw.c,v 1.167 
2003/10/13 04:38:37 jsalmon3 Exp $\n\n");
 
     CLprintf(file, "(mana-sprite \"%s\"  %d %d  %d %d)\n",
-       ManaSprite.File,ManaSprite.HotX,ManaSprite.HotY,
-       ManaSprite.Width,ManaSprite.Height);
+       ManaSprite.File, ManaSprite.HotX, ManaSprite.HotY,
+       ManaSprite.Width, ManaSprite.Height);
     CLprintf(file, "(health-sprite \"%s\"  %d %d  %d %d)\n",
-       HealthSprite.File,HealthSprite.HotX,HealthSprite.HotY,
-       HealthSprite.Width,HealthSprite.Height);
+       HealthSprite.File, HealthSprite.HotX, HealthSprite.HotY,
+       HealthSprite.Width, HealthSprite.Height);
     CLprintf(file, "(shadow-sprite \"%s\"  %d %d  %d %d)\n",
-       ShadowSprite.File,ShadowSprite.HotX,ShadowSprite.HotY,
-       ShadowSprite.Width,ShadowSprite.Height);
+       ShadowSprite.File, ShadowSprite.HotX, ShadowSprite.HotY,
+       ShadowSprite.Width, ShadowSprite.Height);
     CLprintf(file, "(spell-sprite \"%s\"  %d %d  %d %d)\n",
-       SpellSprite.File,SpellSprite.HotX,SpellSprite.HotY,
-       SpellSprite.Width,SpellSprite.Height);
+       SpellSprite.File, SpellSprite.HotX, SpellSprite.HotY,
+       SpellSprite.Width, SpellSprite.Height);
 
     // This belongs to the config and not save file
     if (ShowHealthBar) {
@@ -924,7 +924,7 @@
        //
        //      Show working of units.
        //
-       if (unit->Player==ThisPlayer) {
+       if (unit->Player == ThisPlayer) {
 
            //
            //  Building under constuction.
@@ -1052,7 +1052,7 @@
     if (SpellSprite.HotX < 0) {
        x1 += SpellSprite.HotX +
            (type->TileWidth * TileSizeX + type->BoxWidth + 1) / 2;
-    } else if (SpellSprite.HotX>0) {
+    } else if (SpellSprite.HotX > 0) {
        x1 += 1 - SpellSprite.HotX +
            (type->TileWidth * TileSizeX - type->BoxWidth) / 2;
     } else {
@@ -1554,7 +1554,7 @@
 **
 **     @todo FIXME: The different styles should become a function call.
 */
-local void DrawInformations(const Unit* unit,const UnitType* type, int x, int 
y)
+local void DrawInformations(const Unit* unit, const UnitType* type, int x, int 
y)
 {
     const UnitStats* stats;
     int r;
@@ -1587,7 +1587,7 @@
        }
        if (type->CanAttack) {
            if (ShowReactionRange) {
-               r = (unit->Player->Type==PlayerPerson) ?
+               r = (unit->Player->Type == PlayerPerson) ?
                    type->ReactRangePerson : type->ReactRangeComputer;
                if (r) {
                    VideoDrawCircleClip(ColorBlue,
@@ -1619,7 +1619,7 @@
 **     @param unit     Pointer to unit.
 **     @param sprite   Change the palette entries 208-210 in this sprite.
 */
-local void GraphicUnitPixels(const Unit* unit,const Graphic* sprite)
+local void GraphicUnitPixels(const Unit* unit, const Graphic* sprite)
 {
     switch (VideoBpp) {
        case 8:
@@ -1841,7 +1841,7 @@
     //
     DrawUnitSelection(unit);
 
-    GraphicUnitPixels(unit,type->Sprite);
+    GraphicUnitPixels(unit, type->Sprite);
 
     sprite = type->Sprite;
     if (type->Harvester && unit->CurrentResource) {




reply via email to

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