only comment undoing of recruits out for now

correct the RELEASE_NOTES entry (undo OOS is not specific to undoing
recruits)
This commit is contained in:
Gunter Labes 2007-12-16 20:52:44 +00:00
parent f089d9d854
commit 01d86b29f8
4 changed files with 12 additions and 6 deletions

View File

@ -17,6 +17,5 @@ archive and the following results where found for 687 files:
before 1018.1 MB before 1018.1 MB
after 79.3 MB after 79.3 MB
Undoing a recruit are no longer possible, they could still cause OOS errors in Undoing recruits without random traits is no longer possible.
MP games.

View File

@ -34,6 +34,7 @@ Version 1.3.12+svn:
* changing the langugage now sets the version number in the title * changing the langugage now sets the version number in the title
properly. properly.
* show 'back to round xxx' also in 800 x 600 resolution * show 'back to round xxx' also in 800 x 600 resolution
* undoing recruits is no longer allowed
* miscellaneous and bug fixes: * miscellaneous and bug fixes:
* various bug fixes and code cleanups * various bug fixes and code cleanups
* added gzip and gunzip command line parameters * added gzip and gunzip command line parameters
@ -52,7 +53,6 @@ Version 1.3.12+svn:
* loading a content with invalid wml does not terminate the game * loading a content with invalid wml does not terminate the game
* increased the precission off the mouse in the top row of the editor * increased the precission off the mouse in the top row of the editor
(closes bug #10219) (closes bug #10219)
* undoing recruits is no longer allowed
Version 1.3.12: Version 1.3.12:
* campaigns: * campaigns:

View File

@ -28,11 +28,11 @@ Version 1.3.12+svn:
* Display the race in the unit preview panel. * Display the race in the unit preview panel.
* Allow to use team labels also for 1-player-teams (bug #9747). * Allow to use team labels also for 1-player-teams (bug #9747).
* Show 'back to round xxx' also in 800 x 600 resolution. * Show 'back to round xxx' also in 800 x 600 resolution.
* Undoing recruits is no longer allowed.
* Miscellaneous and bug fixes * Miscellaneous and bug fixes
* Replaced the 'Binary Saves' option with 'Compressed Saves' and now * Replaced the 'Binary Saves' option with 'Compressed Saves' and now
writes gzip files. writes gzip files.
* Undoing recruits are no longer allowed.
Version 1.3.12: Version 1.3.12:
* campaigns * campaigns

View File

@ -1065,8 +1065,15 @@ private:
redo_stack_.clear(); redo_stack_.clear();
assert(new_unit.type()); assert(new_unit.type());
clear_shroud(team_num); // Dissallow undoing of recruits. Can be enabled again once the unit's
clear_undo_stack(team_num); // description= key doesn't use random anymore.
const bool shroud_cleared = clear_shroud(team_num);
//if(shroud_cleared || new_unit.type()->genders().size() > 1
// || new_unit.type()->has_random_traits()) {
clear_undo_stack(team_num);
/*} else {
undo_stack_.push_back(undo_action(new_unit,loc,RECRUIT_POS));
} */
gui_->recalculate_minimap(); gui_->recalculate_minimap();
gui_->invalidate_game_status(); gui_->invalidate_game_status();