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/doom/p_switch.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/doom/p_switch.c')
-rw-r--r-- | src/doom/p_switch.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/doom/p_switch.c b/src/doom/p_switch.c index 46c08d58..ed4feeca 100644 --- a/src/doom/p_switch.c +++ b/src/doom/p_switch.c @@ -394,7 +394,7 @@ P_UseSpecialLine case 29: // Raise Door - if (EV_DoDoor(line,normal)) + if (EV_DoDoor(line,vld_normal)) P_ChangeSwitchTexture(line,0); break; @@ -418,7 +418,7 @@ P_UseSpecialLine case 50: // Close Door - if (EV_DoDoor(line,close)) + if (EV_DoDoor(line,vld_close)) P_ChangeSwitchTexture(line,0); break; @@ -448,25 +448,25 @@ P_UseSpecialLine case 103: // Open Door - if (EV_DoDoor(line,open)) + if (EV_DoDoor(line,vld_open)) P_ChangeSwitchTexture(line,0); break; case 111: // Blazing Door Raise (faster than TURBO!) - if (EV_DoDoor (line,blazeRaise)) + if (EV_DoDoor (line,vld_blazeRaise)) P_ChangeSwitchTexture(line,0); break; case 112: // Blazing Door Open (faster than TURBO!) - if (EV_DoDoor (line,blazeOpen)) + if (EV_DoDoor (line,vld_blazeOpen)) P_ChangeSwitchTexture(line,0); break; case 113: // Blazing Door Close (faster than TURBO!) - if (EV_DoDoor (line,blazeClose)) + if (EV_DoDoor (line,vld_blazeClose)) P_ChangeSwitchTexture(line,0); break; @@ -494,7 +494,7 @@ P_UseSpecialLine // BlzOpenDoor RED case 137: // BlzOpenDoor YELLOW - if (EV_DoLockedDoor (line,blazeOpen,thing)) + if (EV_DoLockedDoor (line,vld_blazeOpen,thing)) P_ChangeSwitchTexture(line,0); break; @@ -507,7 +507,7 @@ P_UseSpecialLine // BUTTONS case 42: // Close Door - if (EV_DoDoor(line,close)) + if (EV_DoDoor(line,vld_close)) P_ChangeSwitchTexture(line,1); break; @@ -531,7 +531,7 @@ P_UseSpecialLine case 61: // Open Door - if (EV_DoDoor(line,open)) + if (EV_DoDoor(line,vld_open)) P_ChangeSwitchTexture(line,1); break; @@ -543,7 +543,7 @@ P_UseSpecialLine case 63: // Raise Door - if (EV_DoDoor(line,normal)) + if (EV_DoDoor(line,vld_normal)) P_ChangeSwitchTexture(line,1); break; @@ -591,19 +591,19 @@ P_UseSpecialLine case 114: // Blazing Door Raise (faster than TURBO!) - if (EV_DoDoor (line,blazeRaise)) + if (EV_DoDoor (line,vld_blazeRaise)) P_ChangeSwitchTexture(line,1); break; case 115: // Blazing Door Open (faster than TURBO!) - if (EV_DoDoor (line,blazeOpen)) + if (EV_DoDoor (line,vld_blazeOpen)) P_ChangeSwitchTexture(line,1); break; case 116: // Blazing Door Close (faster than TURBO!) - if (EV_DoDoor (line,blazeClose)) + if (EV_DoDoor (line,vld_blazeClose)) P_ChangeSwitchTexture(line,1); break; @@ -625,7 +625,7 @@ P_UseSpecialLine // BlzOpenDoor RED case 136: // BlzOpenDoor YELLOW - if (EV_DoLockedDoor (line,blazeOpen,thing)) + if (EV_DoLockedDoor (line,vld_blazeOpen,thing)) P_ChangeSwitchTexture(line,1); break; |