summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-25 11:27:14 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-25 11:27:14 +0200
commitc37eb9b139a6730e2bd835dd8820a3be92b855cb (patch)
tree38ef6c5c111f4cefa1136eeae2ebb1afbd00bc23 /src/main.cpp
parented6039d47240e744df28b8c486f50208519bfc9c (diff)
downloadminetest-c37eb9b139a6730e2bd835dd8820a3be92b855cb.tar.gz
minetest-c37eb9b139a6730e2bd835dd8820a3be92b855cb.tar.bz2
minetest-c37eb9b139a6730e2bd835dd8820a3be92b855cb.zip
tinkering around
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 524f12469..47840eae8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -89,10 +89,6 @@ SUGG: Implement a "Fast check queue" (a queue with a map for checking
if something is already in it)
- Use it in active block queue in water flowing
-SUGG: Signs could be done in the same way as torches. For this, blocks
- need an additional metadata field for the texts
- - This is also needed for item container chests
-
SUGG: Precalculate lighting translation table at runtime (at startup)
SUGG: A version number to blocks, which increments when the block is
@@ -179,6 +175,12 @@ TODO: Check if the usage of Client::isFetchingBlocks() in
TODO: Make an option to the server to disable building and digging near
the starting position
+SUGG: Signs could be done in the same way as torches. For this, blocks
+ need an additional metadata field for the texts
+ - This is also needed for item container chests
+TODO: There has to be some better way to handle static objects than to
+ send them all the time. This affects signs and item objects.
+
Doing now:
======================================================================
@@ -2347,7 +2349,7 @@ int main(int argc, char *argv[])
while(client.getChatMessage(message))
{
chat_lines.push_back(ChatLine(message));
- if(chat_lines.size() > 7)
+ if(chat_lines.size() > 5)
{
core::list<ChatLine>::Iterator
i = chat_lines.begin();
@@ -2385,6 +2387,11 @@ int main(int argc, char *argv[])
screensize.Y - 10
);
chat_guitext->setRelativePosition(rect);
+
+ if(chat_lines.size() == 0)
+ chat_guitext->setVisible(false);
+ else
+ chat_guitext->setVisible(true);
}
/*