by Edward-san » Wed Jun 02, 2010 12:31 am
Hmm ... I've checked the code, I don't know which code is wrong:
in p_interaction.cpp:
Code: Select all
// If suiciding is disabled, then don't do it.
if (dmflags2 & DF2_NOSUICIDE)
return;
// Kill the player
Net_WriteByte (DEM_SUICIDE);
Or in m_options.cpp:
Code: Select all
{ bitflag, "Disallow Suicide", {&dmflags2}, {1}, {0}, {0}, {(value_t *)DF2_NOSUICIDE} },
What about correct this comment in doomdef.h:
Code: Select all
DF2_NOSUICIDE = 1 << 22, // Players are allowed to suicide.
?
[edit]Nah, not needed. It's better to change the following names IMHO:
DF2_NOSUICIDE -> DF2_SUICIDE
"Disallow Suicide" -> "Allow suicide"
sv_disallowsuicide -> sv_allowsuicide
Hmm ... I've checked the code, I don't know which code is wrong:
in p_interaction.cpp:
[code] // If suiciding is disabled, then don't do it.
if (dmflags2 & DF2_NOSUICIDE)
return;
// Kill the player
Net_WriteByte (DEM_SUICIDE);[/code]
Or in m_options.cpp:
[code] { bitflag, "Disallow Suicide", {&dmflags2}, {1}, {0}, {0}, {(value_t *)DF2_NOSUICIDE} },[/code]
What about correct this comment in doomdef.h:
[code] DF2_NOSUICIDE = 1 << 22, // Players are allowed to suicide.[/code]
?
[edit]Nah, not needed. It's better to change the following names IMHO:
DF2_NOSUICIDE -> DF2_SUICIDE
"Disallow Suicide" -> "Allow suicide"
sv_disallowsuicide -> sv_allowsuicide