Author: pepeto
Date: Mon Jun  2 09:18:45 2014
New Revision: 25008

URL: http://svn.gna.org/viewcvs/freeciv?rev=25008&view=rev
Log:
Add error messages to catch packets from server for unknown units, allowing
client hackers to guess units known seen.

See gna patch #4725

Modified:
    trunk/client/packhand.c

Modified: trunk/client/packhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/packhand.c?rev=25008&r1=25007&r2=25008&view=diff
==============================================================================
--- trunk/client/packhand.c     (original)
+++ trunk/client/packhand.c     Mon Jun  2 09:18:45 2014
@@ -379,6 +379,9 @@
   bool need_economy_report_update;
 
   if (!punit) {
+    log_error("Server wants us to remove unit id %d, "
+              "but we don't know about this unit!",
+              unit_id);
     return;
   }
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to