From cbdcd71c294fba40cc172b9bc55f528a34e0528f Mon Sep 17 00:00:00 2001 From: Alexander Baldeck Date: Sun, 19 Dec 2004 17:07:33 +0000 Subject: removed alfont usage (obsolete dependency now) --- src/gui/char_select.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/char_select.cpp') diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index 1a109836..ae51be1a 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -84,7 +84,7 @@ int tmw_incbutt_proc2(int msg, DIALOG *d, int c) { return D_O_K; } return tmw_button_proc(msg, d, c); -} +} int tmw_player_proc(int msg, DIALOG *d, int c) { if(msg==MSG_DRAW) { @@ -104,7 +104,7 @@ void char_select() { state = LOGIN; if(n_character>0) { char_select_dialog[1].dp = char_info->name; - char_select_dialog[1].x = 400-alfont_text_length(gui_font, char_info->name)/2; + char_select_dialog[1].x = 400-text_length(font, char_info->name)/2; //char_select_dialog[2].dp = playerset; if(playerset==NULL)ok("Error", "Playerset not loaded"); strcpy(button_state, "Del"); @@ -208,8 +208,8 @@ void server_char_delete() { } // Create a new character } else { - n_character = 1; - + n_character = 1; + centre_dialog(char_create_dialog); DIALOG_PLAYER *player = init_dialog(char_create_dialog, -1); int gui_exit = 1; @@ -275,7 +275,7 @@ void server_char_delete() { } else { ok("Error", "Unknown error"); n_character = 0; - } + } } else n_character = 0; } } -- cgit v1.2.3-70-g09d2