SpyAlert when dead, entity cache spam

This commit is contained in:
nullifiedcat 2017-04-16 20:40:05 +03:00
parent 13ad96c36f
commit b932349e6d
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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;