[Commits] [wesnoth/wesnoth] da3a0e: Added [lua] conditional tag

GitHub noreply at github.com
Mon Jan 22 12:03:34 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: da3a0ed7cf457eabe14a3c57bfa3c07aed075933
      https://github.com/wesnoth/wesnoth/commit/da3a0ed7cf457eabe14a3c57bfa3c07aed075933
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2018-01-22 (Mon, 22 Jan 2018)

  Changed paths:
    M changelog
    A data/lua/wml-conditionals.lua
    M data/lua/wml-tags.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Added [lua] conditional tag

Also made conditions fail if they encountered a syntax or runtime error. This seems the
more logical behavior than passing.

WML conditional tags were split into their own Lua file. The one in lua/wml/object.lua
relies on local variables so was left there.





More information about the Commits mailing list