From: SourceForge.net <no...@so...> - 2007-08-17 15:07:49
|
Patches item #1776410, was opened at 2007-08-17 17:07 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305095&aid=1776410&group_id=5095 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: chrysn (chrysn) Assigned to: Nobody/Anonymous (nobody) Summary: fix double ai names Initial Comment: when playing with many ai, it occurs that two choose the same name; one then gets an underscore appended. this does not look good and confuses the user. i've attached a patch that makes ai launched by the server request the magical name __auto__, whereupon the server chooses a name which is not already in use. in the rare case that all names are taken (or the file is unavailable), it assigns _("Computer Player") and sprintf(name,"%s (%d)",_("Computer Player"),index). i've tested it; it also works for the player (this shows the chosen name is correctly transmitted back). the patch was created against svn version 1334 -- should have waited three revisions ;-) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305095&aid=1776410&group_id=5095 |