Follow-up Comment #2, bug #14505 (project freeciv):

Second version:
* The most part of the code for connection handling is moved to
connecthand.c:
** connection_attach(pconn, pplayer, observe) does all the initialization
needed to really observe or take a player.
** connection_detach(pconn): added player removing in pregame, aitoggle (the
invert of connection_attach()), and all notications.
* observe_command(), take_command() and detach_command() just makes an
interface between the user chat command and functions connection_attach() and
connection_detach().
* Removed the usage of detach_command in every places, replaced by
connection_detach().  This will also prevent the future addition of
PR#39130.


(file #6993)
    _______________________________________________________

Additional Item Attachment:

File name: trunk_S2_2_conn_handle_cleanup2.diff Size:31 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?14505>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to