Changeset - r1858:80f0988d8406
[Not reviewed]
master
0 1 0
Darkvater - 19 years ago 2005-05-24 16:13:37
darkvater@openttd.org
(svn r2364) - Fix (regression): [ 1206850 ] Cannot change difficulty in main menu, always the value it was before you changed it. A too rigid check forgot to check the parameter value -1 which set the difficulty level itself.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
misc_cmd.c
Show inline comments
 
@@ -256,7 +256,7 @@ int32 CmdGiveMoney(int x, int y, uint32 
 
 */
 
int32 CmdChangeDifficultyLevel(int x, int y, uint32 flags, uint32 p1, uint32 p2)
 
{
 
	if (p1 >= GAME_DIFFICULTY_NUM) return CMD_ERROR;
 
	if ((int32)p1 >= GAME_DIFFICULTY_NUM && p1 != (uint32)-1L) return CMD_ERROR;
 

	
 
	if (flags & DC_EXEC) {
 
		if (p1 != (uint32)-1L) {
0 comments (0 inline, 0 general)