hiker
132ecfe409
Created separate function for handling received collectedItem messages.
2016-02-15 18:00:09 +11:00
hiker
d15a234ace
Let only the server decide when a kart finished the race. Notify
...
all clients if this happens.
2016-02-15 17:45:24 +11:00
hiker
1ad782e6a6
Added comments.
2016-02-11 17:24:55 +11:00
hiker
7e6711e163
Renamged NetworkWorld to RaceEventManager (since this class is
...
not a 'world' in the sense our game modes are).
2016-02-11 09:03:51 +11:00
hiker
99bc5477a2
Use a password to authenticate the client that is allowed to
...
control a server (now the controlling client can reconnect in
case it gets disconnected, previously with only allowing the host
with id 1 to control, the server could not be controlled anymore).
2016-02-10 18:03:42 +11:00
hiker
bfced53aaf
Started to add password support for a controlling a server.
2016-02-10 13:32:39 +11:00
hiker
cebf395939
Only allow the first connected client to control the server.
2016-02-10 08:28:15 +11:00
hiker
ee320588d5
Merge remote-tracking branch 'origin/master' into support_nw_splitscreen
2016-02-09 17:40:59 +11:00
hiker
354770f564
Added 0 number of laps to configuration to test ending a race.
2016-02-09 13:38:25 +11:00
hiker
8f492d8480
Updated documentation.
2016-02-09 13:38:06 +11:00
hiker
f5a344ccb4
Fixed voting for laps and reverse.
2016-02-09 09:41:35 +11:00
hiker
52460d02de
Made start/terminate/pause/unpause-Protocol private, so that now all
...
calls to those functions from the ProtocolManager event loop (which
avoids locking problems).
2016-02-05 16:28:58 +11:00
hiker
af6ecfec3a
Removed unused function.
2016-02-05 16:15:58 +11:00
hiker
89979a46f5
Removed unused variables.
2016-02-05 16:09:31 +11:00
hiker
2d0fd0260e
Added file forgotten in previous commit.
2016-02-05 10:08:58 +11:00
hiker
6a9a8565d0
Replaced exit mutex with Synchronised.
2016-02-05 09:02:32 +11:00
hiker
89c972c316
Cosmetic changes only.
2016-02-05 08:33:35 +11:00
hiker
e392aa6ead
Fixed syntax errors :(
2016-02-05 08:28:21 +11:00
hiker
0d488b916d
Use Synchronised instead of mutex for next protocol id.
2016-02-05 08:24:28 +11:00
hiker
348a300c09
Use Synchronised for m_requests instead of separate mutex.
2016-02-05 08:19:26 +11:00
hiker
263e41ec1f
The update messages are now handled in the main thread, which removes the
...
need for locking. Also only the last update event is handled, older events
are discarded.
2016-02-04 17:15:14 +11:00
hiker
4fa7a89963
Fixed (probably debug only) crash: evaluating the pointer arithmetic
...
left to right had invalid intermediate result (i>0; offset <0).
2016-02-04 16:56:11 +11:00
hiker
f580603c97
Cosmetic changes.
2016-02-04 16:55:42 +11:00
hiker
878760ed2d
Fixed GameEventProtocol (e.g. collecting items).
2016-02-03 09:07:15 +11:00
hiker
f5897001d8
Properly lock data structure (I've seen data corruption, most likely
...
caused by not locking).
2016-02-03 09:05:26 +11:00
hiker
19053d8ac6
Removed unnecessary call.
2016-02-03 08:48:28 +11:00
hiker
cc017da1d6
Let only the server ping the clients (to reduce network traffic). Reduce
...
frequency of pings (since it appears that often esp. during loading
clients are busy loading which artificially increases latency).
2016-02-03 08:21:34 +11:00
hiker
4f12a9a66c
Prevent usage of duplicated host ids (before if hosts A and B are connected,
...
then A disconnects and C connects, B and C would have the same host id).
2016-02-02 09:52:07 +11:00
hiker
ef8c04e117
Removed unnecessary lock.
2016-02-01 16:45:07 +11:00
hiker
d78c1b3272
Replaced array with scalar value, minor code cleanups.
2016-02-01 16:42:36 +11:00
Benau
87862c27ae
Fix #2127
2016-01-31 10:16:12 +08:00
Marianne Gagnon
3de922bc19
Fix animated textures not working on animated meshes. FIxes #2432
2016-01-30 18:11:58 -05:00
Benau
40e193e415
Reset the ball if out of navmesh after 2 seconds
...
Plus some code clean up
2016-01-29 14:40:52 +08:00
hiker
ad21b6dfa2
Merge pull request #2375 from leyyin/travis-matrix
...
Add matrix configuration to travis file
2016-01-29 12:23:04 +11:00
hiker
17de128f09
Cosmetic changes only.
2016-01-29 08:18:34 +11:00
hiker
e81935df99
Added convenience functions that encode and decode Vec3s and Quats.
2016-01-29 08:14:13 +11:00
hiker
6039f63c0b
Removed need m_self_kart from NetworkWorld, which is not necessary anymore.
2016-01-29 07:42:32 +11:00
hiker
06d1168948
Refactored to remove need for unique kart names.
2016-01-29 07:40:16 +11:00
Benau
cbc9353210
Completely brake the AI karts in goal phase.
2016-01-28 16:13:03 +08:00
hiker
497a018667
Cosmetic changes only.
2016-01-28 08:41:50 +11:00
hiker
2606c5230d
Refactored ControllerEventsProtocol so that unique kart names
...
are not necessaruy anymore.
2016-01-28 08:05:48 +11:00
hiker
892e1b58d1
Protocols are now either synchronous or asynchronous. This avoids a problem
...
that in (rare) circumstances e.g. a message that is only handled synchronously
is deleted from the asynchronous thread (if the main thread is too slow and
a time out is reached).
2016-01-27 10:05:25 +11:00
hiker
e31ce6844e
Partial fix for crash when disconnecting clients.
2016-01-27 07:40:25 +11:00
hiker
618248ef4d
Added comments.
2016-01-27 07:39:53 +11:00
Daniel Butum
28394c36b1
Add matrix configuration to travis file
2016-01-26 18:01:54 +02:00
Benau
5c81a2a3e7
Seperate red and blue balls a bit in race gui
...
This make score like 10:10 a bit clearer
2016-01-25 12:51:43 +08:00
Benau
e8adf7f051
Remove bubblegum in soccer mode as suggested by auria
2016-01-25 12:50:20 +08:00
Benau
3674815e03
Missing reset()
2016-01-23 10:50:32 +08:00
Benau
2bc9362ac6
Add mini-skid for BattleAI when attacking targets
2016-01-23 10:34:20 +08:00
Benau
df9dc5ff34
Make AI really bends it like Beckham
...
Notice: AI will only try to skid to save the ball from being scored
when expert and supertux mode.
2016-01-22 22:01:22 +08:00