Skip to content

Commit

Permalink
Merge pull request #304 from Courseplay/302-course-console-spaming
Browse files Browse the repository at this point in the history
fix: vehicle debug flag check
  • Loading branch information
Tensuko authored Jan 6, 2025
2 parents 675341e + 7b720a7 commit bb7f399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/CpUtil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ end
---@param channel number
---@param vehicle table
function CpUtil.debugVehicle(channel, vehicle, ...)
if CpDebug and CpDebug:isChannelActive(channel) and CpUtil.debugEnabledForVehicle() then
if CpDebug and CpDebug:isChannelActive(channel) and CpUtil.debugEnabledForVehicle(vehicle) then
CpUtil.internalPrintVehicle(vehicle, CpDebug:getText(channel), ...)
end
end
Expand Down

0 comments on commit bb7f399

Please sign in to comment.