Changeset - r226:42c5709a0e10
[Not reviewed]
master
0 1 0
darkvater - 20 years ago 2004-09-12 22:14:45
darkvater@openttd.org
(svn r227) -Fix: Sorry, broke console commands
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
console.c
Show inline comments
 
@@ -704,9 +704,10 @@ bool IConsoleVarHookHandle(_iconsole_var
 
	case ICONSOLE_HOOK_ACCESS:
 
		proc = hook_var->hook_access;
 
		break;
 
	default: return true;
 
	}
 

	
 
	if (proc == NULL) { return true;}
 

	
 
	return proc(hook_var);
 
}
 

	
 
@@ -741,9 +742,10 @@ bool IConsoleCmdHookHandle(_iconsole_cmd
 
	case ICONSOLE_HOOK_ACCESS:
 
		proc = hook_cmd->hook_access;
 
		break;
 
	default: return true;
 
	}
 

	
 
	if (proc == NULL) { return true;}
 

	
 
	return proc(hook_cmd);
 
}
 

	
0 comments (0 inline, 0 general)