Compare commits

...

2 Commits

Author SHA1 Message Date
zaCade
8c72b1cae1 [GlowColors] Void instead of Int, because of no return. 2025-06-01 14:33:09 +02:00
zaCade
c9637a753f [GlowColors] Implement minimal frequency. 2025-06-01 14:32:42 +02:00

View File

@ -373,6 +373,8 @@ public Action Command_Rainbow(int client, int args)
Frequency = StringToFloat(sArg); Frequency = StringToFloat(sArg);
if(Frequency > 10.0) if(Frequency > 10.0)
Frequency = 10.0; Frequency = 10.0;
else if(Frequency < 0.01)
Frequency = 0.01;
} }
if(!Frequency || (args < 1 && g_aRainbowFrequency[client])) if(!Frequency || (args < 1 && g_aRainbowFrequency[client]))
@ -401,7 +403,7 @@ void DisplayGlowColorMenu(int client)
g_GlowColorsMenu.Display(client, MENU_TIME_FOREVER); g_GlowColorsMenu.Display(client, MENU_TIME_FOREVER);
} }
public int MenuHandler_GlowColorsMenu(Menu menu, MenuAction action, int param1, int param2) public void MenuHandler_GlowColorsMenu(Menu menu, MenuAction action, int param1, int param2)
{ {
switch(action) switch(action)
{ {