86 Commits

Author SHA1 Message Date
Mark de Wever
9cb05e205b If in a MP campaign the endlevel was continue(_no_save)...
...it could happen that the client left before the host uploaded the
new scenarion, this has been fixed.
2008-01-01 14:14:06 +00:00
Jörg Hinrichs
1a2998d0cc Implements compatibility of change_host functionality with mp campaigns.
It also removes a little flaw i introduced with the last mp campaign
fix (clients/observers got thrown to the title screen). And it also
fixes the long standing bug #6332 (After MP game no automatic return
to lobby).
2007-11-06 19:50:08 +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
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
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
Patrick Parker
bc5e45d30a remove struct/class conflict 2007-02-20 03:40:45 +00:00
Mark de Wever
7368cf87c4 moved some includes 2007-02-09 19:24:22 +00:00
Mark de Wever
9e5741ee2f removed unused function turn_info::turn_slice 2007-02-09 18:52:16 +00:00
Serge Martin
f96d4dec92 some clean 2006-10-31 10:09:11 +00:00
Jörg Hinrichs
b62e6dceaa fixes bug #6021 (problems with host handover functionality)
This also changes the control command in the way that every player can
give away his own slot(s).
2006-06-07 20:45:42 +00:00
Jörg Hinrichs
9a8d4a4cb2 fixes OoS bugs
#5967 (OoS box doesn't appear), 

#5960 (OoS when moving more than range in mp), 

#5954 (OoS with undo in mp)
2006-05-22 16:56:04 +00:00
Jörg Hinrichs
f89a87af5f fixes bug #5728 part 3 (actions menu and end turn button freeze)
also fixes wrong side starting to play after loading a savegame
2006-04-12 20:57:48 +00:00
Jörg Hinrichs
00ac387315 Map Editor compiles with VC++ again
fixes broken enemy unit movement highlighting
minor cleanups
2006-04-08 16:33:50 +00:00
Jörg Hinrichs
c9882f7085 various bugfixes 2006-04-02 22:03:12 +00:00
Jörg Hinrichs
739b66daf1 Done implementation, before bugfixing 2006-03-29 21:12:27 +00:00
Jörg Hinrichs
cb0392a6f3 implements feature to skip mp replays for observer
(actually they are not really skipped but accelerated quite a lot)
2006-03-04 20:56:24 +00:00
Jérémy Rosen
d5db8ede04 add a command to clear all labels in mp games 2006-02-05 00:34:03 +00:00
Rusty Russell
a5b935bc09 Neaten display::set_paths() and display::set_reach_map().
Bug #5145 was caused by a missing set_paths(NULL), because the display
object used to keep the paths pointer it was passed.

This is unnecessary, because the gui only needs to keep which tiles to
highlight: it does not need to keep the paths themselves.  Also, both
interfaces are very similar and should be combined.  While we're
there, rename them: we don't use it for the actual "route"
highlighting (ie. the footsteps), just for showing where a unit/units
can reach.
2006-01-26 02:35:07 +00:00
Rusty Russell
e2feadfc86 Warning fixes:
not complete, but I stopped pulling the thread before the whole
project unravelled 8)

(1) team and player numbers should be unsigned.

(2) sizes of gui elements should usually be unsigned.

This probably introduced some bugs.
2006-01-24 01:17:58 +00:00
András Salamon
99bbbd6a51 whitespace cleanup 2006-01-12 11:04:50 +00:00
Jérémy Rosen
fa3532bd13 remove of improper dependancy 2006-01-10 22:43:39 +00:00
Jérémy Rosen
c9090cbc90 added fisher's clock, patch by mtx 2005-12-16 21:52:50 +00:00
Isaac Clerencia Perez
1f15bbf440 Apply patch from Rusty Russel...
...(wow!) to print the number of enemies who can reach a given hex
when "Showing enemy moves"
2005-11-22 00:07:49 +00:00
Philippe Plantier
d5ae1820e4 Fixed bug #12466
text input field not changing its position when changing the resolution.
2005-08-27 22:52:54 +00:00
András Salamon
8d25fb99a6 codeclean in src, mostly Dave's new email address (checked with cvs diff -b)
BY THE WAY, many of the source files have no copyright headers!
2005-07-02 21:37:20 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
John W. C. McNabb
aa8caf2760 new hotkeys 2005-05-18 14:06:30 +00:00
Guillaume Melquiond
aeda20b9c4 Applied patch #3786 from InvPhi for a more intuitive move-and-attack. 2005-03-24 21:18:26 +00:00
Yann Dirson
f83a0b1f76 split a game exceptions into their own file...
...to avoid gratuitous dependencies on gamestatus, some cleanup of
deps against gamestatus
2005-03-22 23:42:37 +00:00
Philippe Plantier
183e200ef8 Const-correctness on play_level, and play_turn. 2005-03-19 10:26:43 +00:00
Yann Dirson
59ad858b54 include cleanup: tooltips 2005-03-10 22:29:57 +00:00
Yann Dirson
81d2cd9563 include cleanup: play* 2005-03-10 20:43:48 +00:00
Yann Dirson
6ec8596b61 include cleanup: about, actions, cavegen, mapgen 2005-03-09 20:48:42 +00:00
Dave White
ce6c79dff2 added assertion that the route is empty...
...back into move_unit() and fixed the caller in playturn
2004-12-30 13:57:23 +00:00
Dave White
a469fc31fb made it so that click-to-attack makes the unit move...
....to the nearest hex to the cursor
2004-12-30 02:52:37 +00:00
Isaac Clerencia Perez
dfe8189b3d Added in-game chat tab-completion for player names.
ToDo:

* Look for memory leaks (can you review it, Dave? :) )

* Make it work in the lobby

* Be case insensitive (any easy way?)
2004-12-20 01:49:19 +00:00
Dave White
28b93b239a CHANGELOG: added feature to move and attack a unit in one go...
...by clicking on an enemy that can be reached this turn.
2004-12-03 01:19:29 +00:00
Dave White
65e2c4ef03 made replacing of sides with observers possible again 2004-12-02 01:59:05 +00:00
Guillaume Melquiond
92d292b655 Remove unused parameters. 2004-11-21 21:25:48 +00:00
Guillaume Melquiond
e517e45464 Remove unused parameter. 2004-11-21 21:15:56 +00:00
Dave White
680646b25e fixed bug where trying to move onto a tile occupied by an enemy...
...but under fog of war would allow one to see where enemy units are
under the fog
2004-09-11 02:55:46 +00:00
Dave White
b3352567a8 made it so that cycling units with 'n' doesn't show enemy invisible units...
...while it's their turn
2004-08-30 01:03:59 +00:00
Isaac Clerencia Perez
3b6cf7aad0 Applied Silene's "speed up compilation - AI" (patch #3322) 2004-08-29 11:48:34 +00:00
Dave White
5e0815989d added feature to replace an AI or local player with an observer;
added some optimizations.
2004-08-21 22:21:05 +00:00
Dave White
c3d2f8abe9 removed the unit description dialog in favor of unit help 2004-08-18 02:51:23 +00:00
Dave White
666191d71c added ban functionality to multiplayer server games 2004-08-06 02:42:36 +00:00
Dave White
8997cfc402 rebalanced various scenarios; fixed bug with roles not working properly 2004-06-26 20:57:49 +00:00
Dave White
16f9f4df7c made it so that non-editable, multi-line textboxes can have areas of text...
...highlighted (and thus copied and pasted). Implemented a 'chat log' feature
2004-06-23 23:43:38 +00:00
Kristoffer Erlandsson
77fc29a1b9 Help browser added. Some basic help is included, but it should be extended. 2004-06-15 20:14:10 +00:00
Dave White
5d3a4f5b3b implemented 'load game' option 2004-06-04 22:45:36 +00:00