you cant memset this to -1 lel
prob fixes the director never switching when only one player was left
This commit is contained in:
1 parent
b2d4039a9f
commit
4cfeef6300
1 file changed
+5
-1
+5
-1
@@ -156,8 +156,12 @@ static void K_UpdateDirectorPositions(void)
|
||||
INT32 playernum;
|
||||
INT32 position;
|
||||
player_t* target;
|
||||
INT32 i;
|
||||
|
||||
memset(directorinfo.sortedplayers, -1, sizeof(directorinfo.sortedplayers));
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
directorinfo.sortedplayers[i] = -1;
|
||||
}
|
||||
|
||||
for (playernum = 0; playernum < MAXPLAYERS; playernum++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user