Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Remove static_assert from previous commit
- Loading branch information
Showing
with
0 additions
and
1 deletion.
-
+0
−1
src/peds/Ped.cpp
There are no files selected for viewing
|
|
@@ -393,7 +393,6 @@ CPed::BuildPedLists(void) |
|
float dist = (ped->GetPosition() - GetPosition()).Magnitude2D();
|
|
float dist = (ped->GetPosition() - GetPosition()).Magnitude2D();
|
|
if (nThreatReactionRangeMultiplier * 30.0f > dist) {
|
|
if (nThreatReactionRangeMultiplier * 30.0f > dist) {
|
|
#ifdef FIX_BUGS
|
|
#ifdef FIX_BUGS
|
|
static_assert( ARRAY_SIZE(m_nearPeds) < ARRAY_SIZE(gapTempPedList) - 1, "gapTempPedList needs wiggle room for unsorted peds and nil slot" );
|
|
|
|
// If the gap ped list is full, sort it and truncate it
|
|
// If the gap ped list is full, sort it and truncate it
|
|
// before pushing more unsorted peds
|
|
// before pushing more unsorted peds
|
|
if( gnNumTempPedList == ARRAY_SIZE(gapTempPedList) - 1 )
|
|
if( gnNumTempPedList == ARRAY_SIZE(gapTempPedList) - 1 )
|
|
|
|