mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 00:09:19 +02:00
pre-merge syncs
This commit is contained in:
@@ -832,11 +832,7 @@ state_manager::deserialize_dynamic( cParser &Input, scene::scratch_data &Scratch
|
||||
return vehicle;
|
||||
}
|
||||
|
||||
#ifdef EU07_USE_OLD_SOUNDCODE
|
||||
TTextSound *
|
||||
#else
|
||||
sound_source *
|
||||
#endif
|
||||
state_manager::deserialize_sound( cParser &Input, scene::scratch_data &Scratchpad, scene::node_data const &Nodedata ) {
|
||||
|
||||
glm::dvec3 location;
|
||||
@@ -848,16 +844,10 @@ state_manager::deserialize_sound( cParser &Input, scene::scratch_data &Scratchpa
|
||||
// adjust location
|
||||
location = transform( location, Scratchpad );
|
||||
|
||||
#ifdef EU07_USE_OLD_SOUNDCODE
|
||||
auto const soundname { Input.getToken<std::string>() };
|
||||
auto *sound = new TTextSound( soundname, Nodedata.range_max, location.x, location.y, location.z, false, false, Nodedata.range_min );
|
||||
sound->name( Nodedata.name );
|
||||
#else
|
||||
auto *sound = new sound_source( sound_placement::external, Nodedata.range_max );
|
||||
sound->offset( location );
|
||||
sound->name( Nodedata.name );
|
||||
sound->deserialize( Input, sound_type::single );
|
||||
#endif
|
||||
|
||||
skip_until( Input, "endsound" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user