rescue bug

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
Post Reply
User avatar
babak2010
Posts: 101
Joined: Sun Jan 18, 2015 8:06 pm
Location: IR
Player profile: http://ddnet.org/players/GoJE-32-GrEEN-32--33-/
Mapper profile: http://ddnet.tw/mappers/GoJE-32-GrEEN-32--33-/

rescue bug

Post by babak2010 »

Click Me : Happy Halloween :twisted: <3
User avatar
east
Posts: 94
Joined: Tue Aug 12, 2014 4:29 pm

Re: rescue bug

Post by east »

g_Config.m_SvRescue isn't useless. The sv_rescue command only exists to ensure it's not enabled/disabled at runtime (like with sv_test_cmds).
User avatar
babak2010
Posts: 101
Joined: Sun Jan 18, 2015 8:06 pm
Location: IR
Player profile: http://ddnet.org/players/GoJE-32-GrEEN-32--33-/
Mapper profile: http://ddnet.tw/mappers/GoJE-32-GrEEN-32--33-/

Re: rescue bug

Post by babak2010 »

east wrote:g_Config.m_SvRescue isn't useless. The sv_rescue command only exists to ensure it's not enabled/disabled at runtime (like with sv_test_cmds).
so if you can change g_Config.m_SvRescue to enable (1) I mean from consol not cfg
Last edited by babak2010 on Wed Aug 19, 2015 3:53 pm, edited 1 time in total.
Click Me : Happy Halloween :twisted: <3
User avatar
babak2010
Posts: 101
Joined: Sun Jan 18, 2015 8:06 pm
Location: IR
Player profile: http://ddnet.org/players/GoJE-32-GrEEN-32--33-/
Mapper profile: http://ddnet.tw/mappers/GoJE-32-GrEEN-32--33-/

Re: rescue bug

Post by babak2010 »

the problem is : same name sv_rescue
MACRO_CONFIG_INT(SvRescue, sv_rescue, 0, 0, 1, CFGFLAG_SERVER, "Allow /rescue command so players can teleport themselves out of freeze")
pConsole->Register("sv_rescue", "", CFGFLAG_SERVER, CServer::ConRescue, pConsole, "Allow /rescue command so players can teleport themselves out of freeze");
Click Me : Happy Halloween :twisted: <3
User avatar
babak2010
Posts: 101
Joined: Sun Jan 18, 2015 8:06 pm
Location: IR
Player profile: http://ddnet.org/players/GoJE-32-GrEEN-32--33-/
Mapper profile: http://ddnet.tw/mappers/GoJE-32-GrEEN-32--33-/

Re: rescue bug

Post by babak2010 »

east wrote:g_Config.m_SvRescue isn't useless. The sv_rescue command only exists to ensure it's not enabled/disabled at runtime (like with sv_test_cmds).
ok I got that.
Click Me : Happy Halloween :twisted: <3
User avatar
east
Posts: 94
Joined: Tue Aug 12, 2014 4:29 pm

Re: rescue bug

Post by east »

Yes, it's the same for sv_test_cmds. The registered command sv_rescue overwrites the config variable sv_rescue and makes it non-accessible from the console. So sv_rescue is read-only at runtime.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests