#1 19.02.2012 10:01:22

akfaew
Administrator
Posts: 619

peaceful moves

I have moved ltex from kirk to games5, and also applied this patch:

diff --git a/server/unittools.c b/server/unittools.c
index eeb5dc1..5cddfae 100644
--- a/server/unittools.c
+++ b/server/unittools.c
@@ -2693,6 +2693,12 @@ static void wakeup_neighbor_sentries(struct unit *punit)
           /* on board transport; don't awaken */
           && can_unit_exist_at_tile(penemy, unit_tile(penemy))) {
         set_unit_activity(penemy, ACTIVITY_IDLE);
+
+        /* enable peaceful moves */
+        if (punit->server.action_timestamp < time(NULL) - game.server.unitwaittime + 30) {
+          punit->server.action_timestamp = time(NULL) - game.server.unitwaittime + 30;
+        }
+
         send_unit_info(NULL, penemy);
       }
     } unit_list_iterate_end;

Units woken up from sentry have unit.unitwaittime = max(unit.unitwaittime, 30 seconds)

Offline

#2 19.02.2012 18:02:49

Duncan_Shriek
Player
Posts: 19

Re: peaceful moves

Nothing against it, but there's one closely related demand:

I suggest you also post your client patch for diplomatic actions without popup dialog.

Offline

Board footer

Powered by FluxBB