diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-30 22:40:43 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-30 22:40:43 +0200 |
commit | 2eb1240e14986e1cccc02a96713133a003347f8b (patch) | |
tree | 28c58a677423d507ab57e421b9fcb8df8b31c5e0 /source/UI/Window.cpp | |
parent | Window contents are sent whenever the window is opened by a player. (diff) | |
download | cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.gz cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.bz2 cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.lz cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.xz cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.zst cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.zip |
Diffstat (limited to 'source/UI/Window.cpp')
-rw-r--r-- | source/UI/Window.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/UI/Window.cpp b/source/UI/Window.cpp index 661f9f62f..f353d0721 100644 --- a/source/UI/Window.cpp +++ b/source/UI/Window.cpp @@ -251,7 +251,7 @@ void cWindow::OpenedByPlayer(cPlayer & a_Player) -void cWindow::ClosedByPlayer(cPlayer & a_Player) +bool cWindow::ClosedByPlayer(cPlayer & a_Player) { // Checks whether the player is still holding an item if (a_Player.IsDraggingItem()) @@ -285,6 +285,8 @@ void cWindow::ClosedByPlayer(cPlayer & a_Player) { delete this; } + + return true; } |