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

« back to all changes in this revision

Viewing changes to common/player.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:
158
158
  return (pcity && pplayer && city_owner(pcity) == pplayer);
159
159
}
160
160
 
 
161
/****************************************************************************
 
162
  Return TRUE iff the player can invade a particular tile (linked with
 
163
  borders and diplomatic states).
 
164
****************************************************************************/
 
165
bool player_can_invade_tile(const struct player *pplayer,
 
166
                            const struct tile *ptile)
 
167
{
 
168
  const struct player *ptile_owner = tile_owner(ptile);
 
169
 
 
170
  return (!ptile_owner
 
171
          || ptile_owner == pplayer
 
172
          || !players_non_invade(pplayer, ptile_owner));
 
173
}
 
174
 
161
175
/***************************************************************
162
176
  In the server you must use server_player_init.  Note that
163
177
  this function is matched by game_remove_player() in game.c,