equal
deleted
inserted
replaced
434 updateXfire(); |
434 updateXfire(); |
435 #endif |
435 #endif |
436 if(id == ID_PAGE_DRAWMAP) |
436 if(id == ID_PAGE_DRAWMAP) |
437 { |
437 { |
438 DrawMapScene * scene; |
438 DrawMapScene * scene; |
439 if(lastid = ID_PAGE_MULTIPLAYER) |
439 if(lastid == ID_PAGE_MULTIPLAYER) |
440 scene = ui.pageMultiplayer->gameCFG->pMapContainer->getDrawMapScene(); |
440 scene = ui.pageMultiplayer->gameCFG->pMapContainer->getDrawMapScene(); |
441 else |
441 else |
442 scene = ui.pageNetGame->pGameCFG->pMapContainer->getDrawMapScene(); |
442 scene = ui.pageNetGame->pGameCFG->pMapContainer->getDrawMapScene(); |
443 |
443 |
444 ui.pageDrawMap->drawMapWidget->setScene(scene); |
444 ui.pageDrawMap->drawMapWidget->setScene(scene); |
445 } |
445 } |
446 if(lastid == ID_PAGE_DRAWMAP) |
446 if(lastid == ID_PAGE_DRAWMAP) |
447 { |
447 { |
448 if(id = ID_PAGE_MULTIPLAYER) |
448 if(id == ID_PAGE_MULTIPLAYER) |
449 ui.pageMultiplayer->gameCFG->pMapContainer->mapDrawingFinished(); |
449 ui.pageMultiplayer->gameCFG->pMapContainer->mapDrawingFinished(); |
450 else |
450 else |
451 ui.pageNetGame->pGameCFG->pMapContainer->mapDrawingFinished(); |
451 ui.pageNetGame->pGameCFG->pMapContainer->mapDrawingFinished(); |
452 } |
452 } |
453 |
453 |
873 NetConnectServer("localhost", pnetserver->getRunningPort()); |
873 NetConnectServer("localhost", pnetserver->getRunningPort()); |
874 } |
874 } |
875 |
875 |
876 void HWForm::NetDisconnect() |
876 void HWForm::NetDisconnect() |
877 { |
877 { |
878 //qDebug("NetDisconnect"); |
|
879 if(hwnet) { |
878 if(hwnet) { |
880 hwnet->Disconnect(); |
879 hwnet->Disconnect(); |
881 delete hwnet; |
880 delete hwnet; |
882 hwnet = 0; |
881 hwnet = 0; |
883 } |
882 } |