[Commits] [wesnoth/wesnoth] 6655b1: LUAI_EXTRASPACE

GitHub noreply at github.com
Sun Mar 29 22:58:55 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 6655b186b1bd5301f7171cd13d3307af3f700bd7
      https://github.com/wesnoth/wesnoth/commit/6655b186b1bd5301f7171cd13d3307af3f700bd7
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-03-30 (Mon, 30 Mar 2015)

  Changed paths:
    M src/lua/luaconf.h
    M src/scripting/lua_kernel_base.cpp
    M src/scripting/lua_kernel_base.hpp

  Log Message:
  -----------
  LUAI_EXTRASPACE

We use LUAI_EXTRASPACE to add a pointer to the lua_kernel_base in the lua_State
stucture, this makes is very easy to get a reference to the lua_kernel in
functions that take a lua_State* as an argument.


  Commit: 38ed3a3c97ddd846c8fb25302a00f90546f0e21b
      https://github.com/wesnoth/wesnoth/commit/38ed3a3c97ddd846c8fb25302a00f90546f0e21b
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-03-30 (Mon, 30 Mar 2015)

  Changed paths:
    M src/generators/lua_map_generator.cpp
    M src/mt_rng.cpp
    M src/mt_rng.hpp
    M src/scripting/lua_kernel_base.cpp
    M src/scripting/lua_kernel_base.hpp
    M src/scripting/lua_rng.cpp
    M src/scripting/mapgen_lua_kernel.cpp
    M src/scripting/mapgen_lua_kernel.hpp

  Log Message:
  -----------
  Use given seed in lua random map generator

Thew seed can be passed in the editor in the generate map dialog, just
like for the other generators.


Compare: https://github.com/wesnoth/wesnoth/compare/53e90c3b020f...38ed3a3c97dd


More information about the Commits mailing list