[Freeciv-Dev] [PATCH] use S_NO_SPECIAL (PR#1311)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- [Freeciv-Dev] [PATCH] use S_NO_SPECIAL (PR#1311),
Markus Linnala <=
|
|