fixed awful cvar bug, amx_reservedslots (which wasn't registered by the plugin) was used in the code instead of amx_reservation

This commit is contained in:
Christian Hammacher 2006-03-06 15:27:30 +00:00
parent 982b22ab20
commit eb7a49f6d4

View File

@ -86,7 +86,7 @@ public plugin_init()
public plugin_cfg() public plugin_cfg()
{ {
/* Get configured number of reserved slots */ /* Get configured number of reserved slots */
gReservedSlots = get_cvar_num("amx_reservedslots") gReservedSlots = get_cvar_num("amx_reservation")
/* The maximum number of players after reserved slot(s) */ /* The maximum number of players after reserved slot(s) */
gPlayerLimit = get_maxplayers() - gReservedSlots gPlayerLimit = get_maxplayers() - gReservedSlots