rehlds / reapi

AMX Mod X module, using API regamedll & rehlds
GNU General Public License v3.0
159 stars 104 forks source link

Implementation error #303

Open jobmail opened 9 months ago

jobmail commented 9 months ago

https://github.com/s1lentq/reapi/blob/8fa52b02951e8267d0bf1baf51c1a2c4ef75492a/reapi/src/natives/natives_misc.cpp#L459

В regame уже есть подходящая функция для завершения раунда:

https://github.com/s1lentq/ReGameDLL_CS/blob/051dc0751afdf86d79660bc85c6d7ecbe1e25587/regamedll/dlls/multiplay_gamerules.cpp#L1009C1-L1009C38

Почему бы не использовать ее, вместо: CSGameRules()->EndRoundMessage(message, _event); CSGameRules()->TerminateRound(_tmDelay, _winStatus);

Добавив в ReGame для "case ROUND_NONE:" - TerminateRound(_tmDelay, _winStatus);