- memset(e, 0, sizeof(*e));
- e->freetime = (float)gametime + 1.0f;
+ int i;
+ i = (e - localentity) / sizeof(localentity_t);
+ if (i < 0 || i >= MAX_LOCALENTITIES)
+ return; // this should be an error
+ //memset(e, 0, sizeof(*e));
+ localentityactive[i] = false;
+ localentityfreetime[i] = (float)gametime + 1.0f;