Commit Graph

15792 Commits

Author SHA1 Message Date
hiker
4286f47a31 Fixed incorrect indices. 2015-12-03 08:23:52 +11:00
hiker
ee7097af35 Added some default settings for race mode and send them to the server.
Changed major and minor mode in protocols from 1-byte to int, since 1-byte
is too small to store the actual values.
2015-12-03 07:53:56 +11:00
Flakebi
b3cb029087
Remove kart-type specific turn settings 2015-12-02 19:40:59 +01:00
Flakebi
dbecbc3840
Assign KartProperties to a variable instead of fetching it every time 2015-12-02 19:40:28 +01:00
Benau
b5d4610f45 Better navmesh handling 2015-12-02 10:41:32 +08:00
Benau
084a4ee844 Fix crashes when no navmesh
User should have no way to start with ai in battle mode,
when the arena has no navmesh.

Unless artist debug mode or more than 1 human players.
2015-12-02 10:08:03 +08:00
hiker
03d857db3e Removed unnecessary code. 2015-12-02 08:17:03 +11:00
hiker
0f52f0bdd9 Fixed incorrect message id in kart selection update message. 2015-12-02 08:16:22 +11:00
hiker
dfa78eaef2 Fixed random token computation to use indeed all 32 bits. 2015-12-02 07:45:05 +11:00
hiker
6d272d8a5a Fixed crash when quicly exiting stk after refreshing the server list. 2015-12-01 23:25:04 +11:00
hiker
109288e0f5 Removed unused code. 2015-12-01 18:10:06 +11:00
hiker
76ddaeaef7 Force refresh of server list when exiting from the server info screen. 2015-12-01 17:47:03 +11:00
hiker
642c402dcf Fixed unconnecting from a server. 2015-12-01 17:43:43 +11:00
Benau
c910c19827 Backwards firing and hard u-turn for backward node
TODO:
correct unstuck and perfect angle fire?
2015-12-01 09:27:49 +08:00
hiker
14390c2c5b Cosmetic changes. 2015-12-01 08:28:53 +11:00
hiker
c9a23bcbb7 Fixed disconnecting of a client. 2015-12-01 08:19:48 +11:00
hiker
bcfec98fa2 Removed all references to OnlineProfile, which makes LAN and WAN
server behave idential (and it also fixed potential memory leaks).
2015-12-01 07:57:42 +11:00
Flakebi
12a1227f20
Merge branch 'upstream/master' into kart-properties 2015-11-29 22:21:08 +01:00
Flakebi
ba3bc326eb
Minor refinements 2015-11-29 22:21:03 +01:00
hiker
2e758a0641 Don't use #players as next player id - if a player gets disconnected,
the next player id would be duplicated.
2015-11-30 08:12:10 +11:00
Flakebi
aea68a2c14
Remove characteristics from kart 2015-11-29 04:08:12 +01:00
Flakebi
9fbe72b3c5
Move getter from characteristics to properties 2015-11-29 04:08:12 +01:00
hiker
18e5cd8d53 Enable refresh of server list after exiting a connection again. Also
removed deleting the joined server.
2015-11-28 12:45:03 +11:00
hiker
73e94e9824 Avoid race condition when a client exits in the lobby. 2015-11-28 12:33:01 +11:00
hiker
e2a6d1c33c Avoid crash (index could be -1). 2015-11-28 12:32:00 +11:00
hiker
09a32c2132 Fix various crashes when a client exits. 2015-11-27 23:05:32 +11:00
hiker
8d843a7317 Show the connected players in the player list of the gui. 2015-11-27 23:05:05 +11:00
hiker
0076a041c9 Used new decode/encodeString functions in other places, made getString private. 2015-11-27 08:55:21 +11:00
hiker
b092b47a58 Send the player's online or local (if not online) name to the server
and all clients.
2015-11-27 08:24:02 +11:00
hiker
801b390860 Removed linux compiler warnings. 2015-11-26 09:16:27 +11:00
hiker
896d55816f Removed linux compiler warnings. 2015-11-26 09:13:57 +11:00
hiker
5c0f71ad07 Fixed names utf8ToWide and wideToUtf8; added convenience functions
taking std:;string and core::stringw as parameter (removed .c_str()
in many function calls).
2015-11-26 08:56:03 +11:00
hiker
517b0dabf9 Merge branch 'refactor_networking' of https://github.com/supertuxkart/stk-code into refactor_networking 2015-11-26 08:48:05 +11:00
hiker
f81bd5d0c5 Fixed names utf8ToWide and wideToUtf8; added convenience functions
taking std:;string and core::stringw as parameter (removed .c_str()
in many function calls).
2015-11-26 08:47:02 +11:00
hiker
2f126ab226 Moved NetworkPlayerProfile into its own file, added getter and
setters for it.
2015-11-26 07:41:37 +11:00
Marianne Gagnon
8ca0fea6fa Fix audio listener positionning code crash 2015-11-23 19:05:51 -05:00
Marianne Gagnon
c806c1de49 Clear status text in register screen, fixes #2361 2015-11-23 19:04:24 -05:00
hiker
927969e720 Added new server state for 'selecting karts'. 2015-11-24 07:55:58 +11:00
hiker
078de5fe93 Server-side authorisation now implemented if client is on
same IP address.
2015-11-24 07:53:51 +11:00
hiker
981a4ab234 Fix crash when disconnecting. 2015-11-23 17:22:12 +11:00
hiker
3e9e9349c0 Removed commented out code. 2015-11-23 17:21:51 +11:00
hiker
07876a0899 Fixed linux compilation 2015-11-23 11:40:33 +11:00
Flakebi
6e36c223b9 Hold one kart properties object per player 2015-11-23 01:19:00 +01:00
hiker
064414afa3 Added server-side test to see if client is authorised to send commands. 2015-11-23 08:26:18 +11:00
hiker
da2671c6ee An 'authorised' client can now tell the server to select karts. 2015-11-23 08:08:23 +11:00
hiker
0f38d6fb8a Don't add same peer twice (which causes a crash when the peer disconnects etc) 2015-11-23 08:03:15 +11:00
Deve
8a0927f574 Fixed minor inconsistency in video settings dialog.
Regression since 9b562d31f4
2015-11-22 15:33:46 +01:00
Benau
aa9220772f Merge remote-tracking branch 'origin/master' into battleAI 2015-11-22 15:01:41 +08:00
Benau
e1f1461488 Fix some bugs and copyright year 2015-11-22 15:01:22 +08:00
Flakebi
79c962dd79 Remove skidding properties and use characteristics instead 2015-11-22 00:40:11 +01:00