Jörg Hinrichs
9c7884f6fb
Adding support for observers in multiplayer to pause...
...
...and continue the game at any time (special greetings to boucman ;-).
2009-02-08 22:15:06 +00:00
Mark de Wever
973a0a7d5c
Remove trailing whitespace.
2009-01-01 10:28:26 +00:00
Mark de Wever
a5d1d2e969
New year copyright update.
2009-01-01 10:27:41 +00:00
Alexander van Gessel
4745240da5
Address bug #12714 :
...
[end_turn] now works properly in "turn events" and in multiplayer.
Known issues remaining:
-[end_turn] currently breaks replays
-If an attack is prevented by [end_turn] in a moveto [event], the
attack cursor remains and prevents further control of
units. Workaround: reloading from autosave.
2008-12-23 06:11:04 +01:00
Ignacio R. Morelle
c0d39e3de9
Hopefully reduced cohesion a bit by moving the...
...
...end_*_exception classes/structs out from menu_events.hpp.
2008-11-23 17:23:42 +00:00
Eric S. Raymond
9223460daa
Remove unused headers.
2008-11-09 04:35:13 +00:00
Alexander van Gessel
d0c10ac55b
Catch end_turn_exception for networked clients.
2008-10-27 00:30:55 +01:00
Alexander van Gessel
88e9b0c5c1
Catch end_turn_exception for non-humans.
2008-10-11 21:22:18 +01:00
Gunter Labes
3e8aa0a94c
start the timer before showing the turn dialog
2008-10-10 14:24:58 +00:00
Gunter Labes
d6f4d46081
typo fix
2008-10-10 14:22:29 +00:00
Pauli Nieminen
7905d73f56
Fixed can move enemy units (causing OOS) (bug #11205 )
2008-09-07 18:39:20 +00:00
Pauli Nieminen
af509f431c
Fixed multiplayer replay switching to next side after victory/defeat,
...
...removed bogus end turn caused by linger mode (bug #9157 )
2008-09-02 20:28:24 +00:00
Pauli Nieminen
376e62bb95
Fixed OoS bug when giving control and having move in undo stack.
2008-08-30 15:29:15 +00:00
Mark de Wever
81c6a850ab
MSVC 6 cleanup.
...
Now that MSVC 6 is no longer supported start to remove some helper code
to work around problems in that compiler. The first step is to comment
out the code and replace it with new helper code that uses the standard.
The second step is to remove the helper code and fix all callers.
Patch 2/3 for step 2: Remove minimum and maximum and fix all callers.
2008-08-24 16:12:13 +00:00
Eric S. Raymond
0ab1b60a6d
Fix two more pesky off-by-one errors.
2008-08-23 19:30:56 +00:00
Eric S. Raymond
69c4c81fa6
Fix bug #11175 (Strange Statistic Losses).
...
Statistics are now associated with side ID (team leader description)
rather than team number.
2008-08-21 23:13:07 +00:00
Mark de Wever
313d0b6a35
Initialize all members.
2008-07-21 19:48:39 +00:00
Pauli Nieminen
36a973f478
Moved MP era events registeration to play_controller
2008-06-30 12:02:09 +00:00
Pauli Nieminen
29a08c0bf4
Fixed timer end warning not to play in opponents turn (bug: #11517 )
2008-06-27 16:33:52 +00:00
Mark de Wever
da66938826
Update doxygen comment style.
2008-06-15 14:00:35 +00:00
Ali El Gariani
78ea02f7d8
replace draw()+update_display() by a draw() forcing the update
...
(this spare a useless screen refresh)
2008-04-21 21:55:02 +00:00
Jörg Hinrichs
95bf75315f
Lazy loading for unit_types Step 2:
...
Rename game_data to unit_type_data and make it a singleton to prevent
passing the same instance throughout the whole code and make
subsequent optimization less painful.
2008-03-30 13:49:03 +00:00
Mark de Wever
62f6024f70
Fixed an invalid vector access,
...
...which could happen since linger mode didn't reset the player_numer_
(bug #11094 ). Also added an assert before the vector access.
2008-02-26 19:37:35 +00:00
Mark de Wever
001af46e6e
Updated all headers to 2008.
2008-02-16 08:47:16 +00:00
uso
1dd7050437
check for linger mode first to prevent a crash if the game runs out of turns
2008-02-07 17:32:58 +00:00
uso
779ea775e5
don't throw all players and observers out of an MP game (and abort it)...
...
...when the host leaves the game in linger mode
2008-02-06 03:48:04 +00:00
uso
71243e64ed
remove an unused parameter
2008-02-01 06:04:47 +00:00
uso
62c9d1d402
catch an end level exception if the host ends the game in linger mode,
...
this still throws you back to the lobby but at least not back to your
desktop ;)
2008-02-01 04:20:23 +00:00
Pauli Nieminen
b979c5b58d
Fixed control change when giving own team (bug #6639 )
2008-01-30 15:35:18 +00:00
Pauli Nieminen
4803f989b1
Fixed turn timer and end_turn commands order (bug #10849 )
2008-01-22 12:57:44 +00:00
Pauli Nieminen
6c7e4be8d5
Fixed boost configure not to add iostreams to global varaibles
...
Added dev-cpp unit test project file
2008-01-22 09:28:36 +00:00
uso
c032d4dcce
reset turn statistics also in replays,
...
reset it in one place per play controller
2008-01-17 01:26:06 +00:00
uso
de54969b3a
damage statistics for the current turn...
...
...also works for observers and droided players now
2008-01-16 23:49:43 +00:00
Gunter Labes
e9514a9467
ignore network errors in linger mode
...
(fixes bug #10077 : After observing game in multiplayer got back to
main screen, not to lobby.)
2008-01-12 11:23:31 +00:00
Gunter Labes
0c2bd29207
remove an unneeded and bogus check
2008-01-08 10:09:05 +00:00
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
Mark de Wever
2db5fcf644
GCC complained about the assignment in the if,
...
according to Sapient the test should also be < instead of ==. Fixed
'em both.
2008-01-01 09:40:09 +00:00
Patrick Parker
ee580607ca
allow the timer to play when the turnbell is disabled
2007-12-31 02:04:41 +00:00
Karol Nowak
2ae091daac
Fixed points 2&4 of FR/bug 10559 - timer sound issues.
2007-12-30 22:50:53 +00:00
Mark de Wever
a1d37a3b14
Unclutter includes.
2007-12-22 17:48:45 +00:00
Eric S. Raymond
93918352aa
Fix some messages.
2007-11-26 10:25:46 +00:00
Eric S. Raymond
77955165ee
Make sure the status line is properly updated as we enter linger mode.
2007-11-26 06:48:09 +00:00
Mark de Wever
b7c86f8088
In linger mode a new overlay is used to see the difference between
...
playing and lingering.
Did some minor cleanups.
2007-11-24 09:34:50 +00:00
Gunter Labes
931c03e551
remove the ping sending again,
...
...this needs to be implemented at some other level.. no idea where
2007-11-20 09:58:44 +00:00
Gunter Labes
076b114019
make the client ping the server every 10 seconds in a network turn
...
(could do it in a human turn as well but i assume the player to send
data often enough anyway)
2007-11-19 02:20:45 +00:00
David White
fbb09a1874
made out of sync message clearer
2007-11-18 08:01:33 +00:00
Gunter Labes
848e3ec26b
correct marking a string as translatable (2007-11-09T22:42:54Z!crazy-ivanovic@gmx.net)
2007-11-10 01:14:52 +00:00
Nils Kneuper
58406bd59c
marked a string translateable
2007-11-09 22:42:54 +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
Jörg Hinrichs
bba338c512
One more step to make mp campaigns work.
...
This implements the mechanics to switch from one scenario to the
next. It also fixes two bugs related to mp campaigns: bug #10056
(Players cannot progress to next scenario if host leaves linger mode
first) and bug #10065 (recall OOS in subsequent scenarios).
2007-10-31 20:33:15 +00:00