...and make chat_handler not depend on game_display. This makes it
possible to include chat_handler without including half the game's
headers for no reason
Providing a new file savegame.cpp for dealing with savegames. This is
only a first throw, much of the savegame functionality will have to be
transferred to this file in subsequent steps.
Disclaimer: This is a pain to do without breaking anything. I'll do my
best to test everything before i commit. However, expect some stuff to
slip through now and then.
(boost issue previously marked as 'upstream problem') by not using
boost iostreams to write directly to disk, instead, write to a
stringstream and thenoutput that to a file. This makes Wesnoth no
longer hang when a save is issued with insufficient disk space.
This reverts a small part of 2009-02-08T11:34:58Z!joerg.hinrichs@alice-dsl.de, but add comment and clean
it a little by checking if it's an AI or not (to prevent replay to
create these sighted events afer human's move, because the engine
don't do that)
Now store and send the path used (using x=x1,x2,.. and y=y1,y2.. in [move])
This currently break compatibility with replay done with RC1 (if they worked)
I will try to restore backward compatibility in next commit.
PS: This commit is a small variation of the patch posted in the bugreport
The fix replaces replay logic with actions.cpp::move_unit, which is
pretty intrusive. I have done some testing and it looks good, but if
we run into serious problems because of this we should consider
reverting it again.
There is also a good chance that this fixes bug #11105 ([endleven] not
working when triggered on a networked client in mp campaigns), since
this bug is most likely caused by missing moveto events in replays.
to development trunk; hand-applied the diff discarding all the
spurious format-only changes, and making the code aware of the changes
introduced by revisions 2008-03-30T13:49:03Z!joerg.hinrichs@alice-dsl.de..2008-04-01T21:51:29Z!joerg.hinrichs@alice-dsl.de in trunk.
This seems to work well testing up to the end of AToTB:2,
with just some "checksum mismatch" warnings that only
display on debug mode...
...with fast switching between them. Can be disabled in the editor
settings. Also changed:
* the display class now holds a pointer to the map instead of a
reference, a pointer can be changed which permits the entire MDI
behavior. Related bits were also changed in terrain_builder.
* mouse_handler_base no longer holds a reference to the map
* the map labels class does not hold a gamemap reference, as it can
use the display object to access the map. Also clearing all labels
was exposed as a public member function.
* used scoped_ptrs and forward declarations to avoid having to include
map_label.hpp and terrain_builder.hpp in display.hpp, this reduces
build dependencies quite a bit.
* made get_action_state use the menu index to allow a dynamic menu to
have checkboxes. This entire chunk of code needs a rewrite.