From ec334a9d68c71ceb0ae83e7f24e1781545887326 Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 11 Jun 2010 12:34:11 +0200 Subject: [PATCH] small cleanup --- src/game/client/components/menus_demo.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index 38ce76755..f8cf8e4f3 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -1,5 +1,4 @@ -#include #include @@ -396,7 +395,7 @@ void CMenus::DemolistPopulate() m_lDemos.clear(); - if(strncmp(m_aCurrentDemoFolder, "demos", 256)) //add parent folder + if(str_comp_num(m_aCurrentDemoFolder, "demos", 256)) //add parent folder { CDemoItem Item; str_copy(Item.m_aName, "..", sizeof(Item.m_aName)); @@ -452,7 +451,7 @@ void CMenus::RenderDemoList(CUIRect MainView) bool IsDir = false; - if(!strncmp(m_lDemos[s_SelectedItem].m_aName, "..", 256)) //parent folder + if(!str_comp_num(m_lDemos[s_SelectedItem].m_aName, "..", 256)) //parent folder IsDir = true; else if(fs_is_dir(m_lDemos[s_SelectedItem].m_aFilename)) IsDir = true; @@ -475,7 +474,7 @@ void CMenus::RenderDemoList(CUIRect MainView) { if(s_SelectedItem >= 0 && s_SelectedItem < m_lDemos.size()) { - if(!strncmp(m_lDemos[s_SelectedItem].m_aName, "..", 256)) + if(!str_comp_num(m_lDemos[s_SelectedItem].m_aName, "..", 256)) { DemoSetParentDirectory(); DemolistPopulate();