summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-22 21:24:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-25 16:35:59 +0300
commit0d300e7aa5699154810af67282dacbcd65929768 (patch)
treee84bcce0aebdfeaf8ead8ee936851548883fc57e /src/commands.cpp
parentcf3ee45291930bec0b10d9bd4b5b525e6e2b395d (diff)
downloadmanaverse-0d300e7aa5699154810af67282dacbcd65929768.tar.gz
manaverse-0d300e7aa5699154810af67282dacbcd65929768.tar.bz2
manaverse-0d300e7aa5699154810af67282dacbcd65929768.tar.xz
manaverse-0d300e7aa5699154810af67282dacbcd65929768.zip
impliment new list in sdlfont.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp8
1 files changed, 5 insertions, 3 deletions
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<SDLFont *const>(chatWindow->getFont());
if (!font)
return;
- const std::list<SDLTextChunk> *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<int>(cache[f].size());
+ const unsigned int sz = static_cast<int>(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)