mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 14:26:54 +00:00

Undoing unit recruits currently ends in oos in most cases, because the random generator is called during unit creation for creating random names. This is not impossible to fix, ofc we could just enable it for nameless units, but i'm not 100% sure wether units with no names call the random generator for random names or not. Also names normaly don't have any influence on the game (same for genders maybe?), so there is no reason not to be able to undo it from a players point of view. We also cannot just store the random state in undo_stack->add_recruit, because the unit creation happens before that
…
…
The Battle for Wesnoth is a Free, turn-based tactical strategy game with a high fantasy theme, featuring both single-player, and online/hotseat multiplayer combat. Fight a desperate battle to reclaim the throne of Wesnoth, or take hand in any number of other adventures. The game's source code and artwork, sound, and music assets are provided under the terms of the GNU General Public License version 2, or (at your option) any later version. Note that for artwork, sound, and music, we interpret "preferred form of the work for making modifications" as the modifiable form that the author chooses to ship us for the source tree. For convenience, a reference copy of the GNU GPL version 2 is provided in the COPYING file in this distribution. Some portions of the source code can be used under different license terms, whenever stated as such in the source. See INSTALL for instructions on how to build the game from source code. A (translated) description of how to play the game can be found in doc/manual/manual.*.html . For extensive documentation about all aspects of the game, see the official Battle for Wesnoth web site: http://www.wesnoth.org/ The official Battle for Wesnoth Forums (with over 400,000 posts from more than 20,000 registered members) can be found at: http://forums.wesnoth.org/
Description
Languages
INI
51.6%
C++
35.9%
Lua
5.7%
Python
4.3%
Emacs Lisp
1%
Other
1.1%