diff options
author | Simon Howard | 2014-09-13 05:15:05 -0400 |
---|---|---|
committer | Simon Howard | 2014-09-13 05:15:05 -0400 |
commit | f716939956e0da16d20b18ea63b5a49b4038da15 (patch) | |
tree | e0629bc70f6b822151a8267db49d6299d0c9c85d /src/strife/p_inter.c | |
parent | cb72358ee930b29f4840b04bbb81f8d8444ce481 (diff) | |
download | chocolate-doom-f716939956e0da16d20b18ea63b5a49b4038da15.tar.gz chocolate-doom-f716939956e0da16d20b18ea63b5a49b4038da15.tar.bz2 chocolate-doom-f716939956e0da16d20b18ea63b5a49b4038da15.zip |
Add vld_ prefix for vldoor_e enum values.
It was pointed out to me recently that vldoor_e has enum values
named 'open' and 'close'. These can potentially conflict with POSIX
standard functions that have the same names, if the right header
files are included.
This doesn't currently cause any problems. However, to avoid any
possibility of a conflict occurring if a different compiler is used,
add a vld_ prefix to all the enum values, to namespace them.
Diffstat (limited to 'src/strife/p_inter.c')
-rw-r--r-- | src/strife/p_inter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/strife/p_inter.c b/src/strife/p_inter.c index d691947e..857f4e13 100644 --- a/src/strife/p_inter.c +++ b/src/strife/p_inter.c @@ -939,7 +939,7 @@ void P_KillMobj(mobj_t* source, mobj_t* target) case MT_COUPLING: junk.tag = 225; - EV_DoDoor(&junk, close); + EV_DoDoor(&junk, vld_close); junk.tag = 44; EV_DoFloor(&junk, lowerFloor); @@ -960,7 +960,7 @@ void P_KillMobj(mobj_t* source, mobj_t* target) { case MT_TOKEN_SHOPCLOSE: junk.tag = 222; - EV_DoDoor(&junk, close); + EV_DoDoor(&junk, vld_close); P_NoiseAlert(players[0].mo, players[0].mo); M_snprintf(plrkilledmsg, sizeof(plrkilledmsg), @@ -972,12 +972,12 @@ void P_KillMobj(mobj_t* source, mobj_t* target) case MT_TOKEN_PRISON_PASS: junk.tag = 223; - EV_DoDoor(&junk, open); + EV_DoDoor(&junk, vld_open); return; case MT_TOKEN_DOOR3: junk.tag = 224; - EV_DoDoor(&junk, open); + EV_DoDoor(&junk, vld_open); return; case MT_SIGIL_A: |