Author: sveinung
Date: Sun Mar  8 14:33:22 2015
New Revision: 28467

URL: http://svn.gna.org/viewcvs/freeciv?rev=28467&view=rev
Log:
Lua: Allow killer player to be nil in edit.unit_kill()

It doesn't always make sense to credit someone with a kill. The C side
can already handle that no killer is specified even when it does.

See patch #5910

Modified:
    trunk/server/scripting/api_server_edit.c

Modified: trunk/server/scripting/api_server_edit.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/scripting/api_server_edit.c?rev=28467&r1=28466&r2=28467&view=diff
==============================================================================
--- trunk/server/scripting/api_server_edit.c    (original)
+++ trunk/server/scripting/api_server_edit.c    Sun Mar  8 14:33:22 2015
@@ -192,7 +192,6 @@
   LUASCRIPT_CHECK_STATE(L);
   LUASCRIPT_CHECK_ARG_NIL(L, punit, 2, Unit);
   LUASCRIPT_CHECK_ARG_NIL(L, reason, 3, string);
-  LUASCRIPT_CHECK_ARG_NIL(L, killer, 4, Player);
 
   loss_reason = unit_loss_reason_by_name(reason, fc_strcasecmp);
 


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

Reply via email to