Fixed a crash when server was created in GUI.
Regression since 7d561de3fbb6c4c4c12ae9e8aa6e67d60f38c512
This commit is contained in:
parent
0fd62c1ca7
commit
99a4fac85e
@ -64,6 +64,7 @@
|
||||
#include "modes/capture_the_flag.hpp"
|
||||
#include "modes/linear_world.hpp"
|
||||
#include "modes/overworld.hpp"
|
||||
#include "modes/profile_world.hpp"
|
||||
#include "modes/soccer_world.hpp"
|
||||
#include "network/network_config.hpp"
|
||||
#include "network/race_event_manager.hpp"
|
||||
@ -3136,6 +3137,9 @@ btQuaternion Kart::getVisualRotation() const
|
||||
void Kart::setOnScreenText(const wchar_t *text)
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
if (ProfileWorld::isNoGraphics())
|
||||
return;
|
||||
|
||||
BoldFace* bold_face = font_manager->getFont<BoldFace>();
|
||||
core::dimension2d<u32> textsize = bold_face->getDimension(text);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user