Skip to content

Commit 71e3f33

Browse files
authored
Fix marker cylinder events not trigger (#4449)
1 parent 5211e3b commit 71e3f33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Client/mods/deathmatch/logic/CClientMarker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ void CClientMarker::SetSize(float fSize)
318318
{
319319
CClientColTube* pShape = static_cast<CClientColTube*>(m_pCollision);
320320
pShape->SetRadius(fSize);
321-
pShape->SetHeight(fSize);
321+
pShape->SetHeight(fSize <= 1.5 ? fSize + 1 : fSize);
322322
break;
323323
}
324324
}

Server/mods/deathmatch/logic/CMarker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ void CMarker::UpdateCollisionObject(unsigned char ucOldType)
428428
{
429429
CColTube* pShape = static_cast<CColTube*>(m_pCollision);
430430
pShape->SetRadius(m_fSize);
431-
pShape->SetHeight(m_fSize);
431+
pShape->SetHeight(m_fSize <= 1.5 ? m_fSize + 1 : m_fSize);
432432
}
433433
else
434434
{

0 commit comments

Comments
 (0)