s1lentq / ReGameDLL_CS

:hammer: Reverse-engineered gamedll (CS 1.6 / CZero)
GNU General Public License v3.0
578 stars 198 forks source link

[Bug] set_member_game, m_bMapHasBuyZone #91

Closed Subb98 closed 6 years ago

Subb98 commented 7 years ago

Hello. Buy zone not removed from map.

#include <amxmodx>
#include <reapi>

#pragma semicolon 1

public plugin_precache() {
    RegisterHookChain(RG_CSGameRules_CheckMapConditions, "FwdCheckMapConditionsPost", 1);
}

public FwdCheckMapConditionsPost() {
    set_member_game(m_bMapHasBuyZone, false);
}
theAsmodai commented 7 years ago

It's correct because m_bMapHasBuyZone is only flag variable.

Subb98 commented 7 years ago

It is possible to make it more than just a flag? This would avoid removing buyzone manually.