File diff r7741:93702189eccf → r7742:13aaf7ce450a
src/misc_cmd.cpp
Show inline comments
 
@@ -380,7 +380,7 @@ CommandCost CmdChangeDifficultyLevel(Til
 

	
 
	if (flags & DC_EXEC) {
 
		if (p1 != (uint32)-1L) {
 
			((int*)&_opt_ptr->diff)[p1] = p2;
 
			((GDType*)&_opt_ptr->diff)[p1] = p2;
 
			_opt_ptr->diff_level = 3; // custom difficulty level
 
		} else {
 
			_opt_ptr->diff_level = p2;