diff --git a/src/xswiftbus/traffic.cpp b/src/xswiftbus/traffic.cpp index 2d76e1f77..cf27fa329 100644 --- a/src/xswiftbus/traffic.cpp +++ b/src/xswiftbus/traffic.cpp @@ -1009,12 +1009,6 @@ namespace XSwiftBus return 0; } - if (x < 1 || y < 1 || x >= w || y >= h) - { - WARNING_LOG("Screen w/h, and x/y" + std::to_string(w) + "/" + std::to_string(h) + " | " + std::to_string(x) + "/" + std::to_string(y)); - return 0; - } - // the 1.25 factor allows to turn around completely traffic->m_deltaCameraPosition.headingDeg = normalizeToZero360Deg(1.25 * 360.0 * static_cast(x) / static_cast(w)); // range 0-360 double usedCameraPitchDeg = 60.0 - (60.0 * 2.0 * static_cast(y) / static_cast(h)); // range +-