From 587275709eb11a036ed474bf6a61f1fd34fc069f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 25 Dec 2004 16:46:27 +0000 Subject: Fixed error causing monster death bitmaps not to show up. --- src/graphic/graphic.cpp | 4 ++-- src/gui/char_server.h | 9 +++++++++ src/gui/login.h | 15 ++++++++++++--- 3 files changed, 23 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp index c391f75b..46413d2b 100644 --- a/src/graphic/graphic.cpp +++ b/src/graphic/graphic.cpp @@ -398,8 +398,8 @@ void do_graphic(void) { int mf = node->frame + node->action; if (node->action == MONSTER_DEAD) { - new_monsterset->spriteset[sprnum * MONSTER_DEAD]->draw(vbuffer, - node->text_x, node->text_y); + new_monsterset->spriteset[sprnum + 8 * MONSTER_DEAD]->draw( + vbuffer, node->text_x, node->text_y); } else { new_monsterset->spriteset[sprnum + 8 * mf]->draw(vbuffer, diff --git a/src/gui/char_server.h b/src/gui/char_server.h index 66ea52bf..2f2a6f46 100644 --- a/src/gui/char_server.h +++ b/src/gui/char_server.h @@ -52,7 +52,16 @@ class ServerListModel : public gcn::ListModel { */ class ServerSelectDialog : public Window, public gcn::ActionListener { public: + /** + * Constructor + * + * @see Window::Window + */ ServerSelectDialog(gcn::Container *parent); + + /** + * Destructor + */ ~ServerSelectDialog(); /** diff --git a/src/gui/login.h b/src/gui/login.h index 46c12d08..884b0fd0 100644 --- a/src/gui/login.h +++ b/src/gui/login.h @@ -19,13 +19,13 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifndef _TMW_LOGIN_H +#define _TMW_LOGIN_H + #ifdef WIN32 #pragma warning (disable:4312) #endif -#ifndef _LOGIN_H -#define _LOGIN_H - #include "../main.h" #include "../log.h" #include "../net/network.h" @@ -43,7 +43,16 @@ */ class LoginDialog : public Window, public gcn::ActionListener { public: + /** + * Constructor + * + * @see Window::Window + */ LoginDialog(gcn::Container *parent); + + /** + * Destructor + */ ~LoginDialog(); /** -- cgit v1.2.3-70-g09d2