Commit Graph

19048 Commits

Author SHA1 Message Date
hiker
4e37c1388b Item collection on a client now works, though it is not predicted yet.
Other things (dropping bubble gum, switch, synchronised banana collection)
still do be done.
2018-05-10 01:09:23 +10:00
hiker
031eb461a3 Removed debug output. 2018-05-10 01:07:41 +10:00
hiker
c98df155a6 Change item visibility always in Item::updateGraphics, which (except
for listener) makes it unnecessary to call collect for Item (only
for ItemState).
2018-05-10 01:05:38 +10:00
hiker
e1530267f3 Fixed compilation error and some warnings. 2018-05-09 00:48:20 +10:00
hiker
3f96ba2b93 Added nitro amount to state. 2018-05-08 20:51:35 +10:00
hiker
9d60112e65 Started to implement proper item handling: the server now sends
updates of all collected items to the clients as part of a state.
A client confirms the received states. Once all clients have
confirmed a certain event, that event is deleted on the server
and not sent anymore. WIP, item collection kind of works, but only
because of kart state updates which include attachment (but not
e.g. nitro).
2018-05-08 19:12:06 +10:00
hiker
356680b182 Removed debug prints. 2018-05-08 18:41:37 +10:00
hiker
eb647124e8 Split the item update into update and updateGraphics() parts. 2018-05-04 16:41:03 +10:00
hiker
c7c061c7c1 Bugfix: all items were counted as easter eggs :) 2018-05-04 16:36:56 +10:00
hiker
3e518968b3 Added a generic collectedItem() virtual function to world
instead of a special case of easter eggs only.
2018-05-04 10:29:44 +10:00
hiker
10ce48b86f Moved notification of easter egg collectoin from Item to ItemManager. 2018-05-04 09:48:54 +10:00
hiker
5ba79bddd7 Removed m_confirmed, renamed m_disappear_counter to m_used_up_counter. 2018-05-04 09:31:50 +10:00
hiker
9392354663 Split Item into two classes: ItemState which contains the non-graphical
and changing properties (e.g. collected,item type etc), and Item (using
ItemState as base class) which contains graphical and constant values.
2018-05-04 01:01:15 +10:00
hiker
0d1e799b4b Removed unused function. 2018-04-30 08:56:28 +10:00
hiker
a737f9e3d5 Fixed typos. 2018-04-27 00:34:58 +10:00
hiker
8a8b954bf9 Fixed more ticks vs time issues. 2018-04-24 17:44:39 +10:00
hiker
c8befd7505 Fixed compiler warning. 2018-04-24 17:30:15 +10:00
hiker
6f38a56dfa Merge branch 'lan-broadcast' 2018-04-24 17:28:19 +10:00
hiker
88abad8dc7 Moved handleMaterialGFX() and updateEngineSFX() from update()
to updateGraphics() - i.e. only one per rendered frame.
2018-04-24 17:19:13 +10:00
hiker
f2f15ac4e0 Removed duplicated entries. 2018-04-24 09:22:52 +10:00
hiker
2a89e7e0d1 Merge remote-tracking branch 'origin/lan-broadcast' into lan-broadcast 2018-04-24 09:18:41 +10:00
hiker
0809f3e286 Added 192.168.1.255 as default broadcast address. 2018-04-24 09:16:55 +10:00
Benau
62ea07ecc8 Try to synchronize timer independent of music 2018-04-24 01:01:47 +08:00
Benau
b919c82da5 Merge remote-tracking branch 'origin/master' 2018-04-23 23:47:30 +08:00
hiker
866eba936d Try to fix linux - compiles. but untested. 2018-04-24 00:37:53 +10:00
hiker
59b796a7f5 Since broadcasting to 255.255.255.255 does not work in all cases,
add code to create a set of potential broadcast addresses and
use them all. Duplicated will be filtered out (since likely a server
will replace more than all).
2018-04-23 23:30:48 +10:00
Alayan-stk-2
d3659232e0 Fix time-to-ticks build issue (#3215) 2018-04-22 20:18:46 -04:00
auria.mg
c08093d732 Merge branch 'More-AI-improvem'
# Conflicts:
#	src/karts/controller/skidding_ai.cpp
2018-04-22 19:36:37 -04:00
hiker
8e1f046b86 Fix the handling of messages that arrive before the last saved state
(which currently causes a crash).
2018-04-22 22:07:21 +10:00
Benau
bc8539ae10 Add some sound effect for lobby 2018-04-22 15:07:08 +08:00
Benau
d4eaec6667 Fix crashed sound repeating 2018-04-22 14:44:43 +08:00
Benau
7ddd498156 Add a separator as auria suggested when reentering the lobby 2018-04-22 14:32:41 +08:00
Benau
96797e9325 Fix wrong code to make it the same as comment 2018-04-22 14:01:11 +08:00
auria.mg
ad7555d8ea Fix race GUI glitch kart icons to line horizontally at the start of a race 2018-04-21 21:04:21 -04:00
auria.mg
bb88ffc460 Merge branch 'game_protocol' 2018-04-21 19:53:56 -04:00
auria.mg
cbfcc55ebc Fix cutscenes sychronisation, fixes #3213 2018-04-21 19:12:25 -04:00
auria.mg
edb3cc4f0b Fix material slowdown not working, fixes #3212 2018-04-21 19:05:45 -04:00
auria.mg
c9d1d1c579 Fix issue with ticks vs time elapsed in scripting engine 2018-04-21 18:46:21 -04:00
Deve
8d767f0c8f Fixed flooding with wrong way messages.
Fixes #3214
2018-04-21 22:51:21 +02:00
Benau
a4198536a0 Reset server if no player in lobby between a grand prix 2018-04-22 01:03:25 +08:00
Benau
e1797f0572 Don't use NetworkConfig which got deleted already 2018-04-21 16:41:25 +08:00
Benau
448ad5abcf Clean up network local player handling 2018-04-21 16:32:43 +08:00
Benau
82a396ed56 Fix kart headlight in network 2018-04-21 16:30:38 +08:00
Benau
ba681a7cf8 Initial GP in network 2018-04-21 16:00:14 +08:00
Benau
6728951985 Fix incorrect camera index for GP 2018-04-21 12:55:55 +08:00
Benau
708d558528 Fix #3191 2018-04-21 10:25:05 +08:00
Deve
e0a5bd1027 Restore dropping bubblegum after shield explosion 2018-04-20 22:04:29 +02:00
hiker
78f96d4818 Temporary 'fixed' banana handling. 2018-04-21 01:32:03 +10:00
Benau
d55d5d0f3f Get local player id from server for GP sorting later 2018-04-20 19:10:40 +08:00
Benau
75a63f6bae Remove unused protocol type 2018-04-20 17:33:07 +08:00