[Commits] [wesnoth/wesnoth] 5beed0: Correct gold check comparision in recall cost

GitHub noreply at github.com
Mon Mar 24 02:22:06 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 5beed0a0f57ab8598d2c5a7335857dfcfbec3c9a
      https://github.com/wesnoth/wesnoth/commit/5beed0a0f57ab8598d2c5a7335857dfcfbec3c9a
  Author: Aishiko <Aishiko at users.noreply.github.com>
  Date:   2014-03-23 (Sun, 23 Mar 2014)

  Changed paths:
    M src/menu_events.cpp

  Log Message:
  -----------
  Correct gold check comparision in recall cost

By correcting the assignment of the cost of the unit it now correctly
says whether or not the play actually has the gold to recall a unit, as
after this check it is assumed they do by the program which creates
the possibility of recalling when you have no gold, or negative gold.

Added comments so that the magic number is explained.


  Commit: 89e1eba6df65864e7398d91dcabcbc3cf6360d4f
      https://github.com/wesnoth/wesnoth/commit/89e1eba6df65864e7398d91dcabcbc3cf6360d4f
  Author: Alexander van Gessel <AI0867 at gmail.com>
  Date:   2014-03-24 (Mon, 24 Mar 2014)

  Changed paths:
    M src/menu_events.cpp

  Log Message:
  -----------
  Merge pull request #130 from Aishiko/Add-unit-instance-recall-costs

Correct gold check comparision in recall dialog


Compare: https://github.com/wesnoth/wesnoth/compare/e132df7d6407...89e1eba6df65


More information about the Commits mailing list