Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] why must this capability stay?
Home

[Freeciv-Dev] why must this capability stay?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] why must this capability stay?
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 18 Jan 2003 09:27:44 -0600

/**************************************************************************
Fills in conn.id automatically, no need to set in packet_join_game_reply.
**************************************************************************/
int send_packet_join_game_reply(struct connection *pc,
                                const struct packet_join_game_reply *reply)
{
  SEND_PACKET_START(PACKET_JOIN_GAME_REPLY);

  dio_put_bool32(&dout, reply->you_can_join);
  dio_put_string(&dout, reply->message);
  dio_put_string(&dout, reply->capability);

  /* This must stay even at new releases! */
  if (has_capability("conn_info", pc->capability)) {
    dio_put_uint32(&dout, pc->id);
  }

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  SEND_PACKET_END;
}

why has this got to stay?

-mike


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] why must this capability stay?, Mike Kaufman <=