Bugfix: non-network mode crashed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2228 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
15c834e849
commit
ea579a3f62
@ -193,6 +193,7 @@ void NetworkManager::handleNewMessage(ENetEvent *event)
|
||||
// ----------------------------------------------------------------------------
|
||||
void NetworkManager::update(float dt)
|
||||
{
|
||||
if(m_mode==NW_NONE) return;
|
||||
ENetEvent event;
|
||||
int result = enet_host_service (m_host, &event, 1);
|
||||
if(result==0) return;
|
||||
|
Loading…
Reference in New Issue
Block a user