FWGS / hlsdk-portable

Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
https://xash.su
Other
266 stars 121 forks source link

[Bot 10] requires min_bots=1 not 0 #421

Closed d47081 closed 8 months ago

d47081 commented 8 months ago

Hello,

I found that without min_bots setting provided, server does not drop bots on players connections and lock access to players by maxplayers value.

It could be solved with min_bots=1 setting but I can't set it to 0 and allow to drop all bots on real players join. Not sure that's bug or feature (with 0 as false interpretation)

nekonomicon commented 8 months ago

You can try to change condition here: https://github.com/FWGS/hlsdk-portable/blob/bot10/dlls/client.cpp#L120

d47081 commented 8 months ago

Thanks, have created PR 423

Just doubts > 0 is maybe wanted for something else there