For Apple, control is the modifier key that is used for contextual menus.
KMOD_CTRL will check for a control-click. This fixes#15259 (https://gna.org/bugs/?15259). (I’ve built and verified with this patch, it works correctly.)
we now always use LUA_IEEE754TRICK to convert double to lua_number even
when lua_number is > 32 bits and LUA_IEEE754TRICK handles numbers with
more than 32 bits incorrectly. (I just assume noone want to deal with
integers > 2^32 in wesnoth anyway)
We now asume IEEE754 when __STDC_IEC_559__ is defined, even when
__STRICT_ANSI__ is also defined. This should specially fix the travis builds
which seem to define __STRICT_ANSI__.
this detects wrong floating point modes which cause OOS
(http://gna.org/bugs/?24223) or even casue lua to crash, because lua relies
on IEEE 754 double precision and also on IEEE 754 nearest rounding.
This makes the envtnames in on_event consistent, i chose to use '_'
instead of ' ' becasue those eventnames can then for example be used as
lua variablenames.
This also fixes a bug in [harm_unit] where a second arument was passed
to wml_actions.animate_unit which was obviously meant to be part of the
first argument.
This also changes harm_unit to use wml_actions.animate_unit instead of
wesnoth.animate_unit becasue the former is better known an thus easier
to understand.
'turn end' did exactly the same. So we we basicalls did this work twice.
'expire_modifications' is not a cheap taks because it needs to check
every modification in every unit.
This also disables 'cancel orders' for those saves.
Actually 'show replay' should also be disabled when loading the save via
mp load game dialog, but implementing that would be wasted time if we
decide to support replays in map some time.
This commit also fixes the Pillow library not being imported correctly, which prevented the script from running at all, and slightly reformats the output.