mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
readfollower: Default horn to sfx_horn00 if an invalid enum is provided
This commit is contained in:
parent
6533e7e69f
commit
fe62e76a39
1 changed files with 5 additions and 0 deletions
|
|
@ -3919,6 +3919,11 @@ if (!followers[numfollowers].field) \
|
||||||
NOSTATE(hitconfirmstate, "HITCONFIRMSTATE");
|
NOSTATE(hitconfirmstate, "HITCONFIRMSTATE");
|
||||||
#undef NOSTATE
|
#undef NOSTATE
|
||||||
|
|
||||||
|
if (!followers[numfollowers].hornsound)
|
||||||
|
{
|
||||||
|
followers[numfollowers].hornsound = sfx_horn00;
|
||||||
|
}
|
||||||
|
|
||||||
CONS_Printf("Added follower '%s'\n", testname);
|
CONS_Printf("Added follower '%s'\n", testname);
|
||||||
if (followers[numfollowers].category < numfollowercategories)
|
if (followers[numfollowers].category < numfollowercategories)
|
||||||
followercategories[followers[numfollowers].category].numincategory++;
|
followercategories[followers[numfollowers].category].numincategory++;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue