~ubuntu-branches/debian/sid/freeciv/sid

« back to all changes in this revision

Viewing changes to client/text.c

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2009-11-27 23:24:00 UTC
  • mfrom: (7.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091127232400-nmoil1yvvskugn1h
[ Karl Goetz ]
* New upstream release
* Bump standards-version to 3.8.3
* Update watch file
  - Now version 3
  - Switched to gna.org instead of sf.net
* Switch readline dev dependency to libreadline-dev instead of
libreadline5-dev. Closes: #553758
* Changed compat to 5
* Relaxed dependencies on freeciv-server for sdl and gtk clients,
freeciv-server is now a recommends
* Stop d/rules trying to gzip scenarios - upstream does this.
* Remove export of datarootdir in d/rules, upstream seems to handle
this correctly now.
* Deleted 01_configure_ac_localedir.diff from d/patches/ and from series.
* Create per-client .desktop files. Closes: #470978, LP: #190555
* Desktop files mention which client they are (sdl/gtk/xaw3d).
* Add myself to uploaders on Clint's suggestion.

[ Clint Adams ]
* Change watch file to grab bz2 tarballs.
* Switch to 3.0 (quilt) source format.
* Remove quilt code from debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1135
1135
 
1136
1136
  astr_clear(&str);
1137
1137
 
1138
 
  if (conn_list_size(pplayer->connections) > 0
1139
 
      && conn_list_get(pplayer->connections, 0)->ping_time != -1.0) {
1140
 
    double ping_time_in_ms =
1141
 
        1000 * conn_list_get(pplayer->connections, 0)->ping_time;
 
1138
  conn_list_iterate(pplayer->connections, pconn) {
 
1139
    if (!pconn->observer
 
1140
        /* Certainly not needed, but safer. */
 
1141
        && 0 == strcmp(pconn->username, pplayer->username)) {
 
1142
      if (pconn->ping_time != -1) {
 
1143
        double ping_time_in_ms = 1000 * pconn->ping_time;
1142
1144
 
1143
 
    astr_add(&str, _("%6d.%02d ms"), (int) ping_time_in_ms,
1144
 
        ((int) (ping_time_in_ms * 100.0)) % 100);
1145
 
  }
 
1145
        astr_add(&str, _("%6d.%02d ms"), (int) ping_time_in_ms,
 
1146
                 ((int) (ping_time_in_ms * 100.0)) % 100);
 
1147
      }
 
1148
      break;
 
1149
    }
 
1150
  } conn_list_iterate_end;
1146
1151
 
1147
1152
  return str.str;
1148
1153
}