Changeset - r934:c6867fa83617
[Not reviewed]
master
0 1 0
dominik - 19 years ago 2005-01-08 08:29:12
dominik@openttd.org
(svn r1422) Fixed linux compiling, that was broken in r1420
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
console_cmds.c
Show inline comments
 
@@ -231,22 +231,22 @@ DEF_CONSOLE_CMD(ConScanFiles)
 
		item = _fios_list + pos;
 
		pos++;		
 
		if (strcmp(argv[1], "..") == 0) {
 
			if (item->type == FIOS_TYPE_PARENT) {
 
				// huh we are searching for the parent directory
 
				char buffer[10];
 
				itoa(pos,buffer,10);
 
				sprintf(buffer, "%d", pos);
 
				IConsoleVarSetString(result, buffer);
 
				return result;
 
			}
 
		} else 
 
			// file records ?
 
			if (item->type == FIOS_TYPE_FILE) {
 
				if (strcmp(argv[1], item->name) == 0) {
 
					char buffer[10];
 
					itoa(pos,buffer,10);
 
					sprintf(buffer, "%d", pos);
 
					IConsoleVarSetString(result, buffer);
 
					return result;
 
				}			
 
			}
 
	}
 

	
0 comments (0 inline, 0 general)