diff options
| author | oy <Tom_Adams@web.de> | 2010-10-13 12:59:30 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-13 12:59:30 +0200 |
| commit | 5801326ebcea91909349c8dc543f108c6d0ebcb8 (patch) | |
| tree | 571c79183f60102a40a2239c433b10312e62099b /src/game/client/components | |
| parent | 8fb39524a9f36424c9f0ff1bf856a602ccd3dc15 (diff) | |
| download | zcatch-5801326ebcea91909349c8dc543f108c6d0ebcb8.tar.gz zcatch-5801326ebcea91909349c8dc543f108c6d0ebcb8.zip | |
fixed line endings
Diffstat (limited to 'src/game/client/components')
| -rw-r--r-- | src/game/client/components/menus_demo.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index 20aee00f..acc2a15e 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -437,9 +437,9 @@ void CMenus::DemolistFetchCallback(const char *pName, int IsDir, int StorageType else { str_format(Item.m_aName, min(static_cast<int>(sizeof(Item.m_aName)), Length), " %s", pName); - char aBuffer[512]; - str_format(aBuffer, sizeof(aBuffer), "%s/%s", pSelf->m_aCurrentDemoFolder, Item.m_aFilename); - // TODO: many items slow this down, don't load the info from every file when making the filelist + char aBuffer[512]; + str_format(aBuffer, sizeof(aBuffer), "%s/%s", pSelf->m_aCurrentDemoFolder, Item.m_aFilename); + // TODO: many items slow this down, don't load the info from every file when making the filelist Item.m_Valid = pSelf->DemoPlayer()->GetDemoInfo(pSelf->Storage(), aBuffer, StorageType, Item.m_aMap, sizeof(Item.m_aMap)); } Item.m_IsDir = IsDir != 0; @@ -486,17 +486,17 @@ void CMenus::RenderDemoList(CUIRect MainView) m_DemolistDelEntry = false; } - char aFooterLabel[128] = {0}; - if(m_DemolistSelectedIndex >= 0) - { - if(str_comp(m_lDemos[m_DemolistSelectedIndex].m_aFilename, "..") == 0) - str_copy(aFooterLabel, Localize("Parent Folder"), sizeof(aFooterLabel)); - else if(m_DemolistSelectedIsDir) - str_copy(aFooterLabel, Localize("Folder"), sizeof(aFooterLabel)); - else if(!m_lDemos[m_DemolistSelectedIndex].m_Valid) - str_copy(aFooterLabel, Localize("Invalid Demo"), sizeof(aFooterLabel)); - else - str_format(aFooterLabel, sizeof(aFooterLabel), "%s: %s", Localize("Map"), m_lDemos[m_DemolistSelectedIndex].m_aMap); + char aFooterLabel[128] = {0}; + if(m_DemolistSelectedIndex >= 0) + { + if(str_comp(m_lDemos[m_DemolistSelectedIndex].m_aFilename, "..") == 0) + str_copy(aFooterLabel, Localize("Parent Folder"), sizeof(aFooterLabel)); + else if(m_DemolistSelectedIsDir) + str_copy(aFooterLabel, Localize("Folder"), sizeof(aFooterLabel)); + else if(!m_lDemos[m_DemolistSelectedIndex].m_Valid) + str_copy(aFooterLabel, Localize("Invalid Demo"), sizeof(aFooterLabel)); + else + str_format(aFooterLabel, sizeof(aFooterLabel), "%s: %s", Localize("Map"), m_lDemos[m_DemolistSelectedIndex].m_aMap); } // render background |