From 272d8e3f91fd54da02276efc9b97e53ff33b175e Mon Sep 17 00:00:00 2001 From: JTE Date: Fri, 23 Jan 2015 01:25:08 +0000 Subject: [PATCH] Removed the need to add "Status = 1" to all new Character select entries for it to become active. git-svn-id: https://code.orospakr.ca/svn/srb2/trunk@9002 6de4a73c-47e2-0310-b8c1-93d6ecd3f8cd --- src/dehacked.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dehacked.c b/src/dehacked.c index f8e52d7bf..6ce1af78d 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -473,6 +473,7 @@ static void readPlayer(MYFILE *f, INT32 num) if (!slotfound && (slotfound = findFreeSlot(&num)) == false) goto done; + PlayerMenu[num].status = IT_CALL; for (i = 0; i < MAXLINELEN-3; i++) { @@ -545,6 +546,7 @@ static void readPlayer(MYFILE *f, INT32 num) if (!slotfound && (slotfound = findFreeSlot(&num)) == false) goto done; DEH_WriteUndoline(word, &description[num].picname[0], UNDO_NONE); + PlayerMenu[num].status = IT_CALL; strncpy(description[num].picname, word2, 8); } else if (fastcmp(word, "STATUS")) @@ -576,6 +578,8 @@ static void readPlayer(MYFILE *f, INT32 num) if (!slotfound && (slotfound = findFreeSlot(&num)) == false) goto done; DEH_WriteUndoline(word, description[num].skinname, UNDO_NONE); + PlayerMenu[num].status = IT_CALL; + strlcpy(description[num].skinname, word2, sizeof description[num].skinname); strlwr(description[num].skinname); }