Closed evandrocoan closed 7 years ago
Hello,
thanks for your help so far. Per your request, I enabled debug mod and uploaded the log file.
My admins saw the issue occur at least twice today.
The first instance was when the vote was decided for "17_8space" but the server changed to de_rats.
The second instance was when the vote was decided for "awp_space_dick" but the server changed to awp_map.
The bug is happening because this function is being called at the wrong time:
public map_change()
The point here is that as the function is public, all your other plugins running on the server may call it, so some bad intended plugin may be doing it. But I doubt someone would do it, but it is a possibility. For now I will study/investigate my code more.
On the log, we may see it was called right after someone say ´wtf´:
L 09/28/2016 - 19:48:02: {274.8399} ( cmd_say ) equali(wtf, 'nom', 3)? 0, strlen(wtf) > 5? 0
L 09/28/2016 - 19:48:02: {274.8399} ( cmd_say ) Just Returning PLUGIN_CONTINUE, as reached the handler end.
L 09/28/2016 - 19:48:02: {274.8399} I AM ENTERING ON map_change(0)
The issue is fixed on version 3.2.3
To reproduce it, is just to end the round when the RTV is going on. To fix it was just to add this:
galileo.sma
1977: if( !( g_voteStatus & VOTE_IS_IN_PROGRESS ) )
1978: {
1979: // If this is called when the voting is going on, it will cause the voting to be cut
1980: // and will force the map to immediately change to the next map on the map cycle.
1981: endRoundWatchdog();
1982: }
Summary: At a vote map by RTV or
gal_startvote
, people voted for the map X, but at change level, the server changed to the map Y.