[Commits] [wesnoth/wesnoth] 50a9a2: move [unstore_unit] definition to lua

GitHub noreply at github.com
Mon Mar 14 13:44:30 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 50a9a25ae7a84da43a0bcc80287a3a9c119adc22
      https://github.com/wesnoth/wesnoth/commit/50a9a25ae7a84da43a0bcc80287a3a9c119adc22
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M data/lua/wml-tags.lua
    M src/game_events/action_wml.cpp
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  move [unstore_unit] definition to lua

This also adds a 'color' parameter to wesnoth.float_label. It was already
previously possible to set a labels color using pango markup, but to
implement [unstore_unit] i need to support the color= syntax as given
by [unstore_unit]

This also adds a 'fire_event' parameter to wesnoth.put_unit to specify
whether the 'unit_placed' event is fired, this is needed to implement
fire_events=yes/no in [unstore_unit] but its also generally useful
for the same reason why [unstore_unit] has this parameter.


  Commit: 413d8cf3d2a21e9752b3330054b526a9782c30f0
      https://github.com/wesnoth/wesnoth/commit/413d8cf3d2a21e9752b3330054b526a9782c30f0
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  implement wesnoth.get_unit(string) directly

this is sure faster than applying a filter to all units on the map which
is what the previous implementation did.


  Commit: a91cb9ad0b27e50c7b74f0ed8e3ad6ba927d74c5
      https://github.com/wesnoth/wesnoth/commit/a91cb9ad0b27e50c7b74f0ed8e3ad6ba927d74c5
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M src/config.hpp
    M src/unit_filter.cpp
    M src/unit_filter.hpp

  Log Message:
  -----------
  add limit=n parameter to standard unit filters

and specially to wesnoth.get_units


  Commit: 43275cd9bac2a2c812c518cdaad357cdef6e72bf
      https://github.com/wesnoth/wesnoth/commit/43275cd9bac2a2c812c518cdaad357cdef6e72bf
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M src/actions/create.cpp
    M src/actions/create.hpp
    M src/game_events/action_wml.cpp

  Log Message:
  -----------
  don't copy units when recruiting/recalling

units are rather big objects so we don't want to copy them unless
needed.


  Commit: ff5a37a0648cdd1cedbdfbe63544b805e8ef8871
      https://github.com/wesnoth/wesnoth/commit/ff5a37a0648cdd1cedbdfbe63544b805e8ef8871
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp

  Log Message:
  -----------
  lock unit_map while running filter or applying effects

This specially prevents lua form removing the unit that is currently
filtered or that currently gets effects, which would cause crashes
otherwise.


  Commit: 986550c0405900d80a3e28dbae093419c484db7a
      https://github.com/wesnoth/wesnoth/commit/986550c0405900d80a3e28dbae093419c484db7a
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M data/lua/wml-tags.lua
    M src/game_events/action_wml.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M src/scripting/lua_api.cpp
    M src/scripting/lua_api.hpp

  Log Message:
  -----------
  move [teleport] actionwml to lua.


  Commit: 310ba26704873a89268d7dfef10f384a12ab2559
      https://github.com/wesnoth/wesnoth/commit/310ba26704873a89268d7dfef10f384a12ab2559
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M src/game_events/action_wml.cpp
    M src/game_events/action_wml.hpp
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  remove unused queued_event parameter from WML_HANDLER_FUNCTION


  Commit: e89abbeb91ecb2a11e450ef3ba0cc3d44cca5b2a
      https://github.com/wesnoth/wesnoth/commit/e89abbeb91ecb2a11e450ef3ba0cc3d44cca5b2a
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M src/actions/unit_creator.cpp
    M src/team.cpp

  Log Message:
  -----------
  cleanup unit_creator


  Commit: bf2ec4df82086a1ba1e3a10bec8bdcce6dc8ab5a
      https://github.com/wesnoth/wesnoth/commit/bf2ec4df82086a1ba1e3a10bec8bdcce6dc8ab5a
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M src/map.cpp

  Log Message:
  -----------
  improve map::overlay()

we now read the config into objects at the start of that method, this means
that we don't have to do those lookups inside that loop anymore.

This also allows us to change that parameter of that function from config to
std::vector<overlay_rule> later when we want to use that
function from non-wml code.


  Commit: f1052b0c2730c97d2a97e888f904617bc174ea13
      https://github.com/wesnoth/wesnoth/commit/f1052b0c2730c97d2a97e888f904617bc174ea13
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M src/map.cpp
    M src/map.hpp

  Log Message:
  -----------
  remove map::operator[](int)

this operator was confusing because usingn map[i][j] would mean that the
border_size is added to x but not to y, It is better to use
operator[](map_location) or to use tiles_[x][y] directly so that this
issue doesn't appear.


  Commit: 7a8957e918342f4b7caf7765037a80341fa52647
      https://github.com/wesnoth/wesnoth/commit/7a8957e918342f4b7caf7765037a80341fa52647
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M src/editor/action/action.cpp
    M src/editor/action/mouse/mouse_action.cpp
    M src/editor/map/editor_map.cpp
    M src/map.cpp
    M src/map.hpp

  Log Message:
  -----------
  use std::vector to store starting locations


  Commit: b2fff5afd938974ede0eb83ff3b57714efef6506
      https://github.com/wesnoth/wesnoth/commit/b2fff5afd938974ede0eb83ff3b57714efef6506
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-03-14 (Mon, 14 Mar 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  removed wesnoth.put_unit() warning

this warning triggered also when using u:to_map(x,y) which is clearly
not intended.


Compare: https://github.com/wesnoth/wesnoth/compare/e13cf1e5912c...b2fff5afd938


More information about the Commits mailing list