Complete.Org: Mailing Lists: Archives: freeciv-dev: May 1999:
[Freeciv-Dev] end turn if !player->is_alive
Home

[Freeciv-Dev] end turn if !player->is_alive

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] end turn if !player->is_alive
From: Nicolas Brunel <brunel@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 8 May 1999 01:42:57 +0000 (GMT)

Hello,

     here is a small patch which autohit turn for 'dead' players.

Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.59
diff -u -r1.59 packhand.c
--- packhand.c  1999/05/03 12:37:02     1.59
+++ packhand.c  1999/05/08 00:33:29
@@ -294,7 +294,8 @@
   meswin_update_delay_off();
   update_meswin_dialog();
 
-  if(game.player_ptr->ai.control && !ai_manual_turn_done) user_ended_turn();
+  if((game.player_ptr->is_alive) ||
+  (game.player_ptr->ai.control && !ai_manual_turn_done)) user_ended_turn();
 }
 
 void handle_before_new_year()



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] end turn if !player->is_alive, Nicolas Brunel <=