From 62057c7d51dbf37b45354661c78bed3f2a35cf56 Mon Sep 17 00:00:00 2001 From: Lari Nieminen Date: Thu, 11 Dec 2008 21:44:04 +0000 Subject: [PATCH] Removed a macro which doesn't seem to work. --- data/core/macros/utils.cfg | 64 -------------------------------------- 1 file changed, 64 deletions(-) diff --git a/data/core/macros/utils.cfg b/data/core/macros/utils.cfg index 7341a366fe5..a1976e206cf 100644 --- a/data/core/macros/utils.cfg +++ b/data/core/macros/utils.cfg @@ -242,70 +242,6 @@ {CLEAR_VARIABLE MOVE_UNIT_path_coords_y} #enddef -#define NO_SCROLL_TO_AI_LEADER SIDE - # Prevents the view from scrolling to the leader of a specific AI - # side at the beginning of its turn. Useful if that side doesn't - # really do anything and the scrolling distance would be long - # enough to be annoying every turn (for example on a big - # map). Does not work on human-controlled sides. - # - # Warning: in networked MP this will cause the game to think the - # leader of this side has been defeated when changing turns and - # thus might lead to victory/defeat being declared prematurely. - [event] - name=side turn - first_time_only=no - - [if] - [variable] - name=side_number - numerical_equals={SIDE} - [/variable] - - [then] - [store_unit] - [filter] - side={SIDE} - canrecruit=yes - [/filter] - - kill=yes - variable=stored_side_{SIDE}_leader - [/store_unit] - - {VARIABLE stored_side_{SIDE}_leader.canrecruit no} - - [unstore_unit] - variable=stored_side_{SIDE}_leader - [/unstore_unit] - [/then] - [/if] - [/event] - - [event] - name=ai turn - first_time_only=no - - [if] - [variable] - name=side_number - numerical_equals={SIDE} - [/variable] - - [then] - {VARIABLE stored_side_{SIDE}_leader.canrecruit yes} - - [unstore_unit] - variable=stored_side_{SIDE}_leader - find_vacant=no - [/unstore_unit] - - {CLEAR_VARIABLE stored_side_{SIDE}_leader} - [/then] - [/if] - [/event] -#enddef - #define FULL_HEAL FILTER # This heals the specified unit(s) to full health. [store_unit]