mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-27 22:30:52 +00:00
Don't start game entity loops at index 1
This commit is contained in:
parent
71512bb1fd
commit
5b9302a7ef
2 changed files with 3 additions and 3 deletions
|
@ -275,7 +275,7 @@ void G_FindTeams( void ) {
|
||||||
|
|
||||||
c = 0;
|
c = 0;
|
||||||
c2 = 0;
|
c2 = 0;
|
||||||
for ( i=1, e=g_entities+i ; i < level.num_entities ; i++,e++ ){
|
for ( i=MAX_CLIENTS, e=g_entities+i ; i < level.num_entities ; i++,e++ ) {
|
||||||
if (!e->inuse)
|
if (!e->inuse)
|
||||||
continue;
|
continue;
|
||||||
if (!e->team)
|
if (!e->team)
|
||||||
|
|
|
@ -320,8 +320,8 @@ void Svcmd_EntityList_f (void) {
|
||||||
int e;
|
int e;
|
||||||
gentity_t *check;
|
gentity_t *check;
|
||||||
|
|
||||||
check = g_entities+1;
|
check = g_entities;
|
||||||
for (e = 1; e < level.num_entities ; e++, check++) {
|
for (e = 0; e < level.num_entities ; e++, check++) {
|
||||||
if ( !check->inuse ) {
|
if ( !check->inuse ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue