MCE: small improvement for the NoRestrictionTimeframe
This commit is contained in:
		
							parent
							
								
									00c37c4db8
								
							
						
					
					
						commit
						be6a2525cf
					
				| @ -180,6 +180,7 @@ int g_mapOfficialFileSerial = -1; | |||||||
| char g_GameModName[64]; | char g_GameModName[64]; | ||||||
| bool g_WarningInProgress = false; | bool g_WarningInProgress = false; | ||||||
| bool g_AddNoVote = false; | bool g_AddNoVote = false; | ||||||
|  | bool g_SaveCDOnMapEnd = true; | ||||||
| 
 | 
 | ||||||
| RoundCounting g_RoundCounting = RoundCounting_Standard; | RoundCounting g_RoundCounting = RoundCounting_Standard; | ||||||
| 
 | 
 | ||||||
| @ -460,6 +461,11 @@ public void OnMapStart() | |||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
| 	g_Config.Rewind(); | 	g_Config.Rewind(); | ||||||
|  | 
 | ||||||
|  | 	if(InternalAreRestrictionsActive()) | ||||||
|  | 		g_SaveCDOnMapEnd = true; | ||||||
|  | 	else | ||||||
|  | 		g_SaveCDOnMapEnd = false; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| public void OnConfigsExecuted() | public void OnConfigsExecuted() | ||||||
| @ -523,7 +529,7 @@ public void OnMapEnd() | |||||||
| 	static char map[PLATFORM_MAX_PATH]; | 	static char map[PLATFORM_MAX_PATH]; | ||||||
| 	int Cooldown; | 	int Cooldown; | ||||||
| 
 | 
 | ||||||
| 	if(InternalAreRestrictionsActive()) | 	if(g_SaveCDOnMapEnd) | ||||||
| 	{ | 	{ | ||||||
| 		GetCurrentMap(map, PLATFORM_MAX_PATH); | 		GetCurrentMap(map, PLATFORM_MAX_PATH); | ||||||
| 		Cooldown = InternalGetMapCooldown(map); | 		Cooldown = InternalGetMapCooldown(map); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 neon
						neon