Add "Restart Current Map" to sm_map menu.
This commit is contained in:
		
							parent
							
								
									ec3351a320
								
							
						
					
					
						commit
						91cc6b300c
					
				@ -46,6 +46,11 @@ public int MenuHandler_ChangeMap(Menu menu, MenuAction action, int param1, int p
 | 
			
		||||
		
 | 
			
		||||
		menu.GetItem(param2, map, sizeof(map));
 | 
			
		||||
 | 
			
		||||
		if (!map[0])
 | 
			
		||||
		{
 | 
			
		||||
			GetCurrentMap(map, sizeof(map));
 | 
			
		||||
		}
 | 
			
		||||
	
 | 
			
		||||
		ShowActivity2(param1, "[SM] ", "%t", "Changing map", map);
 | 
			
		||||
 | 
			
		||||
		LogAction(param1, -1, "\"%L\" changed map to \"%s\"", param1, map);
 | 
			
		||||
@ -159,6 +164,8 @@ int LoadMapList(Menu menu)
 | 
			
		||||
	char map_name[PLATFORM_MAX_PATH];
 | 
			
		||||
	int map_count = GetArraySize(g_map_array);
 | 
			
		||||
 | 
			
		||||
	menu.AddItem("", "Restart Current Map");
 | 
			
		||||
	
 | 
			
		||||
	for (int i = 0; i < map_count; i++)
 | 
			
		||||
	{
 | 
			
		||||
		char displayName[PLATFORM_MAX_PATH];
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user