From 0d300e7aa5699154810af67282dacbcd65929768 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Apr 2013 21:24:52 +0300 Subject: impliment new list in sdlfont. --- src/commands.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 065983a01..8f03780ba 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -920,11 +920,12 @@ impHandler0(cacheInfo) if (!chatWindow || !debugChatTab) return; +/* SDLFont *const font = dynamic_cast(chatWindow->getFont()); if (!font) return; - const std::list *const cache = font->getCache(); + const TextChunkList *const cache = font->getCache(); if (!cache) return; @@ -933,9 +934,9 @@ impHandler0(cacheInfo) std::string str; for (int f = 0; f < 256; f ++) { - if (!cache[f].empty()) + if (!cache[f].size) { - const unsigned int sz = static_cast(cache[f].size()); + const unsigned int sz = static_cast(cache[f].size); all += sz; str.append(strprintf("%d: %u, ", f, sz)); } @@ -949,6 +950,7 @@ impHandler0(cacheInfo) debugChatTab->chatLog(strprintf("%s %d", _("Deleted:"), font->getDeleteCounter())); #endif +*/ } impHandler0(serverIgnoreAll) -- cgit v1.2.3-60-g2f50