Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2002:
[Freeciv-Dev] [PATCH] use S_NO_SPECIAL (PR#1311)
Home

[Freeciv-Dev] [PATCH] use S_NO_SPECIAL (PR#1311)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] use S_NO_SPECIAL (PR#1311)
From: Markus Linnala <maage@xxxxxxxxx>
Date: Sun, 10 Mar 2002 08:08:29 -0800 (PST)

Use S_NO_SPECIAL instead of 0.

diff -ur -X freeciv/diff_ignore freeciv/common/unit.c 
freeciv-special/common/unit.c
--- freeciv/common/unit.c       Tue Feb 26 18:57:51 2002
+++ freeciv-special/common/unit.c       Sun Mar 10 18:05:56 2002
@@ -588,7 +588,7 @@
     return can_unit_do_connect(punit, current);
 
   punit->activity = ACTIVITY_IDLE;
-  punit->activity_target = 0;
+  punit->activity_target = S_NO_SPECIAL;
 
   result = can_unit_do_activity_targeted(punit, current2, target);
 
@@ -778,7 +778,7 @@
 {
   punit->activity=new_activity;
   punit->activity_count=0;
-  punit->activity_target=0;
+  punit->activity_target = S_NO_SPECIAL;
   punit->connecting = FALSE;
 }
 
@@ -903,7 +903,7 @@
    case ACTIVITY_PATROL:
      return get_activity_text (punit->activity);
    case ACTIVITY_PILLAGE:
-     if(punit->activity_target == 0) {
+     if(punit->activity_target == S_NO_SPECIAL) {
        return get_activity_text (punit->activity);
      } else {
        my_snprintf(text, sizeof(text), "%s: %s",

-- 
//Markus



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