Author: sveinung Date: Sun Aug 30 11:21:08 2015 New Revision: 29727 URL: http://svn.gna.org/viewcvs/freeciv?rev=29727&view=rev Log: Stop teleportation related ghost units
Make unit_move() inform players that the unit they saw at the dest tile now is gone when the move is non adjacent. See bug #23831 Modified: trunk/server/unittools.c Modified: trunk/server/unittools.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/unittools.c?rev=29727&r1=29726&r2=29727&view=diff ============================================================================== --- trunk/server/unittools.c (original) +++ trunk/server/unittools.c Sun Aug 30 11:21:08 2015 @@ -3486,6 +3486,12 @@ BV_SET(pmove_data->can_see_unit, player_index(oplayer)); BV_SET(pmove_data->can_see_move, player_index(oplayer)); } + if (can_player_see_unit_at(oplayer, pmove_data->punit, psrctile, + pmove_data != pdata)) { + /* The unit was seen with its source tile even if it was + * teleported. */ + BV_SET(pmove_data->can_see_unit, player_index(oplayer)); + } } players_iterate_end; } unit_move_data_list_iterate_end; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits