mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 22:09:19 +02:00
fixes
This commit is contained in:
@@ -139,7 +139,3 @@ target_link_libraries(${PROJECT_NAME} ${LUAJIT_LIBRARIES})
|
|||||||
find_package(libserialport REQUIRED)
|
find_package(libserialport REQUIRED)
|
||||||
include_directories(${libserialport_INCLUDE_DIR})
|
include_directories(${libserialport_INCLUDE_DIR})
|
||||||
target_link_libraries(${PROJECT_NAME} ${libserialport_LIBRARY})
|
target_link_libraries(${PROJECT_NAME} ${libserialport_LIBRARY})
|
||||||
|
|
||||||
if (UNIX)
|
|
||||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined")
|
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -1018,6 +1018,8 @@ event_manager::CheckQuery() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
case tp_Sound: {
|
case tp_Sound: {
|
||||||
|
if (m_workevent->Params[ 9 ].tsTextSound == nullptr)
|
||||||
|
break;
|
||||||
switch( m_workevent->Params[ 0 ].asInt ) {
|
switch( m_workevent->Params[ 0 ].asInt ) {
|
||||||
// trzy możliwe przypadki:
|
// trzy możliwe przypadki:
|
||||||
case 0: {
|
case 0: {
|
||||||
|
|||||||
@@ -846,7 +846,12 @@ state_manager::deserialize_sound( cParser &Input, scene::scratch_data &Scratchpa
|
|||||||
|
|
||||||
auto const soundname { Input.getToken<std::string>() };
|
auto const soundname { Input.getToken<std::string>() };
|
||||||
auto *sound = sound_man->create_text_sound(soundname);
|
auto *sound = sound_man->create_text_sound(soundname);
|
||||||
sound->position((glm::vec3)location).dist(Nodedata.range_max);
|
sound->position((glm::vec3)location);
|
||||||
|
if (Nodedata.range_max != -1.0)
|
||||||
|
sound->dist(Nodedata.range_max);
|
||||||
|
else
|
||||||
|
sound->set_mode(sound::global);
|
||||||
|
|
||||||
skip_until( Input, "endsound" );
|
skip_until( Input, "endsound" );
|
||||||
|
|
||||||
return sound;
|
return sound;
|
||||||
|
|||||||
Reference in New Issue
Block a user