SpyAlert when dead, entity cache spam
This commit is contained in:
parent
13ad96c36f
commit
b932349e6d
@ -217,7 +217,7 @@ void EntityCache::Update() {
|
||||
}
|
||||
|
||||
CachedEntity* EntityCache::GetEntity(int idx) {
|
||||
if (idx < 0 || idx >= m_nMax) {
|
||||
if (idx < 0 || idx > m_nMax) {
|
||||
logging::Info("Requested invalid entity: %i max %i", idx, m_nMax);
|
||||
}
|
||||
//logging::Info("Request entity: %i, 0x%08x", idx, m_pArray[idx].m_pEntity);
|
||||
|
@ -26,6 +26,7 @@ float last_say = 0.0f;
|
||||
|
||||
void Draw() {
|
||||
if (!enabled) return;
|
||||
if (g_pLocalPlayer->life_state) return;
|
||||
CachedEntity* closest_spy = nullptr;
|
||||
float closest_spy_distance = 0.0f;
|
||||
int spy_count = 0;
|
||||
|
Reference in New Issue
Block a user