[Commits] [wesnoth/wesnoth] c55faa: fix config::valid_id()

GitHub noreply at github.com
Mon Feb 8 20:24:02 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: c55faadecc030ddcacc6dfd971f84555e54742ce
      https://github.com/wesnoth/wesnoth/commit/c55faadecc030ddcacc6dfd971f84555e54742ce
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-02-08 (Mon, 08 Feb 2016)

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

  Log Message:
  -----------
  fix config::valid_id()

previously config::valid_id() had the following issues:
1) It passed its parameter by copy.
2) It used isalnum, which depends on the current locale, this means that
its reults might be different on different machines and it also means
that its slow becasue it must check the current locale.


  Commit: 6d1d5f09b897b9075a5e4c8224d76d192200d537
      https://github.com/wesnoth/wesnoth/commit/6d1d5f09b897b9075a5e4c8224d76d192200d537
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-02-08 (Mon, 08 Feb 2016)

  Changed paths:
    M src/variable_info.cpp

  Log Message:
  -----------
  remove useless check_valid_name() calls

they are not needed anymore since the name is now checked with
config::valid_id()


  Commit: 969157d79e907261494cf52fbc8ccaf6551cfcd7
      https://github.com/wesnoth/wesnoth/commit/969157d79e907261494cf52fbc8ccaf6551cfcd7
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-02-08 (Mon, 08 Feb 2016)

  Changed paths:
    M src/help/help_impl.cpp
    M src/help/help_topic_generators.cpp

  Log Message:
  -----------
  fix color in help unit resitances

https://gna.org/bugs/?24381


  Commit: c1e080f2d4d4987815f3a92bcbfd143fc103cf91
      https://github.com/wesnoth/wesnoth/commit/c1e080f2d4d4987815f3a92bcbfd143fc103cf91
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-02-08 (Mon, 08 Feb 2016)

  Changed paths:
    M src/game_initialization/playcampaign.cpp

  Log Message:
  -----------
  always proceed with a mp campaign if you are the host.


  Commit: 12b40cf45801c0b7fb1773ccccfc3af33057c027
      https://github.com/wesnoth/wesnoth/commit/12b40cf45801c0b7fb1773ccccfc3af33057c027
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-02-08 (Mon, 08 Feb 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    A src/scripting/lua_pathfind_cost_calculator.hpp
    M src/scripting/mapgen_lua_kernel.cpp

  Log Message:
  -----------
  make wesnoth.find_path function available to lua ganerators.

it doesn't support all parameters of the original find_path function
that is used during the game, because things like units or maps are not
avaiable.


  Commit: 80a99f828c515dee7201c3bc0026ef3c984e387d
      https://github.com/wesnoth/wesnoth/commit/80a99f828c515dee7201c3bc0026ef3c984e387d
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-02-08 (Mon, 08 Feb 2016)

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

  Log Message:
  -----------
  make wesnoth.random avaiable in for lua map gerneration

It has the same interface as math.random and the normal wesnoth.random
that is used in games.


  Commit: 37e613b6fcfedb44cc501439965da94b4913633e
      https://github.com/wesnoth/wesnoth/commit/37e613b6fcfedb44cc501439965da94b4913633e
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-02-08 (Mon, 08 Feb 2016)

  Changed paths:
    A data/multiplayer/scenarios/Random_Scenario_Lua_Cave.cfg
    A data/multiplayer/scenarios/Random_Scenario_Lua_Cave.lua

  Log Message:
  -----------
  Added a sample lua map generator

this is more or less the code of the cavegen as used in HttT scenario 17
ported to lua.


Compare: https://github.com/wesnoth/wesnoth/compare/84ff8f4d969b...37e613b6fcfe


More information about the Commits mailing list