16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 07:49:19 +02:00

refactoring: application mode code split

This commit is contained in:
tmj-fstate
2018-08-02 20:39:19 +02:00
parent 460bf6d382
commit ff6bed67a9
74 changed files with 5375 additions and 2921 deletions

View File

@@ -17,8 +17,16 @@ http://mozilla.org/MPL/2.0/.
#include "event.h"
#include "simulation.h"
#include "world.h"
#include "messaging.h"
#include "globals.h"
#include "memcell.h"
#include "track.h"
#include "traction.h"
#include "tractionpower.h"
#include "sound.h"
#include "animmodel.h"
#include "dynobj.h"
#include "driver.h"
#include "timer.h"
#include "logs.h"
@@ -1207,7 +1215,7 @@ event_manager::CheckQuery() {
}
case 1: {
if( m_workevent->Params[ 1 ].asdouble > 0.0 ) {
Global.pWorld->radio_message(
simulation::radio_message(
m_workevent->Params[ 9 ].tsTextSound,
static_cast<int>( m_workevent->Params[ 1 ].asdouble ) );
}