X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fscreens.c;h=403e4247a0b33e878a9d956b36ad938238dc817f;hp=2ec1e94155f3b52ad29b53f6d2dc8da49f5ecabb;hb=4bfb87302a577130daa603481814b69afc84ab75;hpb=3a46ba9fb75998c9f7219e3b9e70dfe1438fd233 diff --git a/src/screens.c b/src/screens.c index 2ec1e941..403e4247 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4021,16 +4021,12 @@ static void HandleTypeNameExt(boolean initialize, Key key) SaveSetup(); is_active = FALSE; - - SetGameStatus(GAME_MODE_MAIN); } else if (key == KSYM_Escape) { strcpy(setup.player_name, last_player_name); is_active = FALSE; - - SetGameStatus(GAME_MODE_MAIN); } if (is_active) @@ -4043,6 +4039,8 @@ static void HandleTypeNameExt(boolean initialize, Key key) } else { + SetGameStatus(GAME_MODE_MAIN); + pos->width = strlen(setup.player_name) * font_width; sx = mSX + ALIGNED_TEXT_XPOS(pos);