about summary refs log tree commit diff
path: root/src/game/editor
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-11-17 18:36:19 +0100
committeroy <Tom_Adams@web.de>2010-11-17 18:36:19 +0100
commit3d3572f845c1d61acd960caf0c28562b9c8681e5 (patch)
tree35462aeb48e77f217a79fdaaee36b80777e81d55 /src/game/editor
parentd32b93d3ec538c89539d39c61cac4b56e00db8be (diff)
downloadzcatch-3d3572f845c1d61acd960caf0c28562b9c8681e5.tar.gz
zcatch-3d3572f845c1d61acd960caf0c28562b9c8681e5.zip
fixed some compiler warnings
Diffstat (limited to 'src/game/editor')
-rw-r--r--src/game/editor/ed_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp
index 9fb457aa..867049e1 100644
--- a/src/game/editor/ed_editor.cpp
+++ b/src/game/editor/ed_editor.cpp
@@ -2127,8 +2127,8 @@ static void EditorListdirCallback(const char *pName, int IsDir, int StorageType,
 	int Length = str_length(pName);
 	if((pName[0] == '.' && (pName[1] == 0 ||
 		(pName[1] == '.' && pName[2] == 0 && (!str_comp(pEditor->m_pFileDialogPath, "maps") || !str_comp(pEditor->m_pFileDialogPath, "mapres"))))) ||
-		(!IsDir && (pEditor->m_FileDialogFileType == CEditor::FILETYPE_MAP && (Length < 4 || str_comp(pName+Length-4, ".map"))) ||
-		(pEditor->m_FileDialogFileType == CEditor::FILETYPE_IMG && (Length < 4 || str_comp(pName+Length-4, ".png")))))
+		(!IsDir && ((pEditor->m_FileDialogFileType == CEditor::FILETYPE_MAP && (Length < 4 || str_comp(pName+Length-4, ".map"))) ||
+		(pEditor->m_FileDialogFileType == CEditor::FILETYPE_IMG && (Length < 4 || str_comp(pName+Length-4, ".png"))))))
 		return;
 
 	CEditor::CFilelistItem Item;