ConVar.BoolValue possible bug ?
So I have this Convar which defaults to 0. However once it has been set to true it doesn't change back to false. Using GetConVarBool and SetConVarBool it works fine using latest stable 1.7.2 SM compiler.
Could someone confirm this bug or maybe tell me if i understood something wrong here ? PHP Code:
PHP Code:
|
Re: ConVar.BoolValue possible bug ?
BoolValue might be read-only and you may need to alter it via some function. Look it up.
|
Re: ConVar.BoolValue possible bug ?
no it has a setter
// Retrieves or sets a boolean value for the convar. property bool BoolValue { public native get(); public native set(bool b); } |
Re: ConVar.BoolValue possible bug ?
yeah, seems bugged
|
Re: ConVar.BoolValue possible bug ?
PHP Code:
|
Re: ConVar.BoolValue possible bug ?
I may be seeing odd behavior in int convars using .IntValue... need to try some things to test some things.
|
Re: ConVar.BoolValue possible bug ?
Ya, I remember getting a bug report about convars not being set properly through ConVar's properties(it was for VSH repo I have)
|
Re: ConVar.BoolValue possible bug ?
Quote:
However, given that it works correctly the first time it's used and not subsequent times.... ...oh right, did I mention that this is happening in a core plugin? Specifically, MapChooser when you extend a map. And apparently only for the maxrounds cvar. |
Re: ConVar.BoolValue possible bug ?
Yea I have problems with using .IntValue too and am forced to use Get/SetConVarInt. I have a similar problem with adt_array's .Set (or .Get?) function
|
Re: ConVar.BoolValue possible bug ?
If you believe there to be an issue, please file a bug @ https://bugs.alliedmods.net (forum email and password to log in) with a minimal test case that can reproduce the issue.
|
All times are GMT -4. The time now is 04:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.