fixed a logic error in ExtendMapTimeLimit()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401486
This commit is contained in:
David Anderson 2007-09-26 02:43:58 +00:00
parent 17b7f4c68d
commit c84a3cf8e9

View File

@ -96,14 +96,14 @@ public:
void ExtendMapTimeLimit(int extra_time)
{
extra_time /= 60;
if (extra_time == 0)
{
mp_timelimit->SetValue(0);
return;
}
extra_time /= 60;
mp_timelimit->SetValue(mp_timelimit->GetInt() + extra_time);
}