[Commits] [wesnoth/wesnoth] 439ded: 2p dark forecast: don't store unit pool types in s...

GitHub noreply at github.com
Thu Feb 18 22:49:54 UTC 2016


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

  Changed paths:
    M data/multiplayer/scenarios/2p_Dark_Forecast.lua

  Log Message:
  -----------
  2p dark forecast: don't store unit pool types in savefiles

instead of storing the poolypesin savefiles we now have them as 'const'
lua array and store only the indexes to this array in the savefiles.
this has some advantages:
1) It makes the savefiles smaller
2) It simplyfies the lua code becasue we don't have to convert the wml
tables to lua tables anymore.

This also changes the scenario so that the spawned unit types are now
calculated at the beginning (they will be the same when reloading from a
savefile.)


  Commit: 8eafd50980eb5902be0d29117e7559697eb51edb
      https://github.com/wesnoth/wesnoth/commit/8eafd50980eb5902be0d29117e7559697eb51edb
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-02-18 (Thu, 18 Feb 2016)

  Changed paths:
    M src/scripting/lua_fileops.cpp

  Log Message:
  -----------
  fix wesnoth.read_file()


Compare: https://github.com/wesnoth/wesnoth/compare/39eb8feaf1d0...8eafd50980eb


More information about the Commits mailing list