358 Commits

Author SHA1 Message Date
Mark de Wever
7b12cffb91 Updated the network code to handle gzipped data instead of binary wml.
Nobody sends it yet, but the server can receive it, once the server
has been restarted there will be another commit to make the clients
send gzipped data to the server.

There's a config variable to change the server to send gzipped data as
well. On the trunk server this switch can be set once everybody had
some time to update their clients.

Once 1.3.12 is no longer allowed on the server this can also be set on
the 1.3 server. Once it's no longer allowed there the server will be
modified to only send gzipped data and the switch removed.

(The campaign server won't be modified at this moment.)

NOTE *campaign server and server need to be included
serialization/binary_or_text.cpp*
2007-12-08 17:42:36 +00:00
Mark de Wever
22ad729bcc Added gzip write support.
Updated changelogs and other documentation about new gzip featue.

Some cosmetic cleanups.
2007-12-05 17:27:08 +00:00
Ali El Gariani
225b4e8ff9 finally convert fogged(x,y) to fogged(loc)
This simplify all the calls like fogged(mouseover_.x,mouseover_.y)
2007-12-03 20:56:53 +00:00
Gunter Labes
62ed8c7559 fix indentation 2007-11-28 21:31:18 +00:00
Gunter Labes
b71815ff05 call play_slice() every side turn instead of every turn,
...ideally it should be called in do_replay..

logging and formatting fixes
2007-11-28 03:25:43 +00:00
Gunter Labes
149f576a8d add a replay logger
log to the replay logger rather than network in replay.cpp

line length improvemets
2007-11-27 17:26:47 +00:00
Patrick Parker
a4d88c6478 feature request #9990: post-heal "side turn"-like event hook
new event "turn refresh" occurs after healing, calculating income, and
restoring movement (note: this intentionally excludes the first turn)
2007-09-15 18:06:55 +00:00
Ali El Gariani
843719feef fix a small glitch with slow or static flags animation:
after WML-capture of a village, the flag was updated only after a frame change

Note: I choose to invalidate directly in the flag-capture function,
because asking to invalidate after calling it, is a source of glitches
2007-08-31 20:46:01 +00:00
Gunter Labes
ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Eric S. Raymond
4e01e775f0 Address bug #9874.
This puts the game back in linger mode when a file saved in linger
mode is loaded.
2007-08-28 16:41:51 +00:00
Eric S. Raymond
417a01a805 Refactoring step:
Move where game completion is set so we can get rid of a bunch of
passed-in object references,
2007-08-28 01:07:13 +00:00
Mark de Wever
e09b7901cf C-style cast cleanup. 2007-08-26 17:56:10 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
uso
9bc6613ff3 enable "teamchat" for observers in multiplayer games 2007-08-10 22:49:55 +00:00
Mark de Wever
d9eacc1a65 Several changes to the checksum function.
* Changed the name and calling method for the checksum function.

* Made it no longer a member function since it doesn't need to know
  the internals of unit.

* Add an extra flag so recruit can use this method in a few commits.
2007-07-22 11:04:59 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Mark de Wever
415615a007 [unstore_unit] can now try to level a unit...
...and does so by default this time added for real, the replay can
also handle it (bug #7426).  Also added a test case to the test
scenario.
2007-07-15 09:06:13 +00:00
Eric S. Raymond
0f4f6c2d0f Preferences module partitioned...
...so the editor can use a version that doesn't link in the entire
universe.  Most of the changes just replace inclusions of
"preferences.hpp" with a new "game_preferences.hpp".
2007-07-05 19:13:39 +00:00
Eric S. Raymond
301373feaa Use the existence of the variable_set base type...
...to move read_location back  into the map class as a method.
2007-07-04 12:32:57 +00:00
Eric S. Raymond
f62da2becf Factor a dependency on game_state out of map_labels.cpp. 2007-07-04 11:03:23 +00:00
Jim
6966ec2397 fix bug #9379 (renaming a moved unit can cause OOS)
Rename commands are now sent in order with regular commands.  They are
removed when recruits/recalls are undone, and their locations are
repaired when moves are undone.
2007-07-03 18:33:02 +00:00
Eric S. Raymond
5943b2e885 Separate reading of configurations from the map class. 2007-07-02 13:39:34 +00:00
Eric S. Raymond
4439a0c763 Pry the map_label.cpp code the rest of the way loose from replay.cpp.
If clearing of old labels during replays stops working, suspect this commit.
2007-06-28 13:04:22 +00:00
Eric S. Raymond
00c2437836 Begin prying map_labels.cpp loose from the replay maChinery. 2007-06-28 12:24:38 +00:00
Eric S. Raymond
9f11735f32 Split display.h up
in order to remove the last game_display dependency from the map
editor.
2007-06-28 10:25:30 +00:00
Eric S. Raymond
43e5de9fee Huge patch pretty much all name changes.
display is now the base class and game_display the derived; code that
can use the base class because it doesn't need to grok units or teams
(like preferences.cpp and hotkeys.cpp) does so.
2007-06-28 05:32:36 +00:00
Eric S. Raymond
6e25c94423 Add a new field to the game state structure: completion,
...which may have the values 'running', 'victory', or 'defeat'.  It is
set by play_game() and check_victory().  It is loaded and saved.

Presently this is not yet used (though I have tested that it is set properly).
So there are no behavioral changes in the game yet.

What it does is give us a way of setting victory/defeat status that isn't 
tied to throwing an end-of-scenario exception.  This is a first step to 
allowing observer-like game browsing after victory/defeat notification,
with the user choosing to throw end-of-scenario after that.

Doing this required passing a game-state reference into two classes 
that didn't have it before, ai_interface and mouse_handler.
2007-06-14 12:29:03 +00:00
Mark de Wever
c7351b1885 changed scroll_to_tiles() to use gamemap::location 2007-05-27 08:51:40 +00:00
Jérémy Rosen
e111e5d439 unit drawing logic cleanup,
should fix various acceleration bugs and restore status bars during fight
2007-05-12 10:33:21 +00:00
Mark de Wever
4c50d77561 remove unused function replay::get_save_info() 2007-04-14 20:11:58 +00:00
Mark de Wever
a1d476da1b removed unused function replay::mark_current() 2007-04-14 20:05:46 +00:00
Mark de Wever
2521c7ad61 removed unused function replay::get_config() 2007-04-14 19:58:43 +00:00
Patrick Parker
e0f200a502 silene's patch #715: Fix incorrect last argument of paths constructor 2007-04-07 03:22:55 +00:00
Patrick Parker
d0e3e11c47 use the more consistent replay style for [fire_event] source locations 2007-04-06 23:15:58 +00:00
David Philippi
f231fb12e0 merged patch #714 by silene
- removal of dead stuff and static linkage marking for internal functions
2007-04-06 12:26:02 +00:00
Patrick Parker
a08b654924 correct an off-by-one error with replay event location 2007-04-03 04:49:12 +00:00
Patrick Parker
33f753c191 set_menu_item events should work in MP now
(also transmits previous select event)
2007-04-03 04:09:36 +00:00
Jérémy Rosen
9260a9c2e0 fix skirmisher not working properly when filtered by terrain
note that there is a similar bug with teleport, but I don't have time
to fix it right now, if someone could look into it, that would be
great
2007-03-31 14:51:17 +00:00
Jörg Hinrichs
246bfd9d54 Fixes bug #8547
(side turn events and income handled differently for network/local sides)
2007-03-18 19:04:16 +00:00
Mark de Wever
7bf5325486 merged commit 2006-10-19T12:48:28Z!rusty@rustcorp.com.au from 1.2 2007-02-24 22:54:40 +00:00
Martin Renold
1b4a5792bd add display updates and invalidate_all in some places
fixes bug #7131
2007-02-20 16:40:43 +00:00
Jörg Hinrichs
e79aff40b6 Fixes broken replays after last savegame commits...
...by getting the starting position out of gamestate.starting_pos
instead of snapshot. Also fixes replays stumbling upon empty command
tags.
2007-01-15 20:13:47 +00:00
Thomas Baumhauer
58ffe135dd Hopefully fixing bug #8263 (Random events broken in HttT - Crossroads) 2007-01-14 08:50:21 +00:00
Jörg Hinrichs
b34bcbd9e4 This did handle pre 1.1 replays which we can't do anyway.
So i took this code away.
2007-01-14 01:04:12 +00:00
Jérémy Rosen
ce317d7580 better filtering of lobby join, using the new friend list 2007-01-06 16:34:24 +00:00
Jérémy Rosen
35215cf56a allow WML variables set to random to correctly work in MP games thx to Baufo 2007-01-01 19:26:25 +00:00
Jérémy Rosen
145c33d11b multiple fixes to friendlist, including tab completion 2007-01-01 19:04:58 +00:00
Pauli Nieminen
b58a67c38b Support for team only labels 2007-01-01 10:32:00 +00:00
Jérémy Rosen
9fc9763969 add friendlist 2006-12-28 13:30:38 +00:00
Patrick Parker
eec28080f7 merge 2006-12-23T07:00:45Z!patrick_x99@hotmail.com to the trunk,
...and fixes platform-specific loop scoping error (again!)
2006-12-23 07:36:36 +00:00