mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 01:54:19 +00:00
9a012312b8
The `CServer::GetClientVersion` method needs the `version.h` include, so it's moved from the header to the source file, so the include can be removed from the header. The `GetClientVersion` method is often called with the same `Client != SERVER_DEMO_CLIENT ? GetClientVersion(Client) : CLIENT_VERSIONNR` expression, which also needs the `version.h` include. This expression is moved inside the method, so the include can be removed from all the server entities' and player code. The `CGameContext::GetClientVersion` method is made a delegate to reduce duplicate code. The includes of the server entities are also organized further. |
||
---|---|---|
.. | ||
client | ||
editor | ||
server | ||
bezier.cpp | ||
bezier.h | ||
collision.cpp | ||
collision.h | ||
ddracechat.h | ||
ddracecommands.h | ||
gamecore.cpp | ||
gamecore.h | ||
layers.cpp | ||
layers.h | ||
localization.cpp | ||
localization.h | ||
mapbugs.cpp | ||
mapbugs.h | ||
mapbugs_list.h | ||
mapitems.cpp | ||
mapitems.h | ||
mapitems_ex.cpp | ||
mapitems_ex.h | ||
mapitems_ex_types.h | ||
prng.cpp | ||
prng.h | ||
teamscore.cpp | ||
teamscore.h | ||
tuning.h | ||
variables.h | ||
version.h | ||
voting.h |