Author: sveinung Date: Sun Mar 8 14:33:37 2015 New Revision: 28468 URL: http://svn.gna.org/viewcvs/freeciv?rev=28468&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: branches/S2_6/server/scripting/api_server_edit.c Modified: branches/S2_6/server/scripting/api_server_edit.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/scripting/api_server_edit.c?rev=28468&r1=28467&r2=28468&view=diff ============================================================================== --- branches/S2_6/server/scripting/api_server_edit.c (original) +++ branches/S2_6/server/scripting/api_server_edit.c Sun Mar 8 14:33:37 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