EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bug Reports (https://www.eqemulator.org/forums/forumdisplay.php?f=591)
-   -   defaultstatus setting is unsigned 8-bit (https://www.eqemulator.org/forums/showthread.php?t=40649)

cyranothedaft 05-26-2016 03:56 PM

defaultstatus setting is unsigned 8-bit
 
When I use the zones/defaultstatus setting in eqemu_config.xml to specify -1 (suspended), subsequent auto-created accounts get a status of 255, which is undesired. This appears to be because in the server code the EQEmuConfig::DefaultStatus member is declared as uint8, so the -1 is probably getting implicitly converted to 255. The corresponding account.status field in the database is a 32-bit integer, and, to my understanding, is designed to allow values of -1 and -2. It makes sense to me that the defaultstatus eqemu_config.xml setting should allow these as well. I propose changing that member variable's declaration to int16 or int32. (Being unfamiliar with most of the server code, I am unaware of other possible consequences of such a change.)

Thanks for your attention.

- Eric
/ cyranothedaft /


All times are GMT -4. The time now is 07:04 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.