This is the mail archive of the
xconq-cvs@sourceware.cygnus.com
mailing list for the Xconq project.
xconq/ /ChangeLog ernel/ai.c ernel/init.c erne ...
- To: xconq-cvs at sourceware dot cygnus dot com
- Subject: xconq/ /ChangeLog ernel/ai.c ernel/init.c erne ...
- From: shebs at sourceware dot cygnus dot com
- Date: 24 Sep 1999 23:52:53 -0000
CVSROOT: /cvs/xconq
Module name: xconq
Changes by: shebs@egcs.cygnus.com 99/09/24 16:52:51
Modified files:
. : ChangeLog
kernel : ai.c init.c side.h socket.c tp.c
tcltk : tkconq.tcl tkmain.c
x11 : xconq.c
win : wconq.c
Log message:
* side.h (Side rid): Remove slot, not needed.
* ai.c: Add some comments.
(init_ai): Handle networked case correctly.
* init.c (set_player_advantage, rename_side_for_player,
set_ai_for_player): New functions.
(assign_players_to_sides): Remove setting of side->rid, test
player->rid instead, improve warning message.
* socket.c: Add some comments.
(open_remote_connection): Remove dead code in hosting case,
retry 5 instead of 15 times in joining case.
(close_remote_connection): Handle arg of 0 usefully.
* tp.c (init_remote_ui): Set rui->rid from player->rid.
(net_set_player_advantage): Call set_player_advantage.
(net_add_side_and_player, net_rename_side_for_player,
net_set_ai_for_player): New function.
(receive_assignment_setting): Add rest of messages, share
assignment callback use.
* tkconq.tcl (update_allplayer_buttons): New proc, code to
adjust buttons that affect all players.
(add_player_dialog_items, add_player_cmd, select_player): Use it.
(exchange_players_cmd): Only update if valid return from exchange.
(join_game): Inform player about result of join attempt.
* tkmain.c (tk_add_side_and_player, tk_rename_side_for_player,
tk_set_ai_for_player): Use net_ functions.
(tk_try_join_game): Return result of try_join_game.
(try_join_game): Move here from xconq.c & wconq.c, also return
success or failure.
(update_assignment): Call update_allplayer_buttons.
* wconq.c, xconq.c (try_join_game): Remove.
* xconq.c (host_the_game): Warn about connection failure.