On Mon, Apr 09, 2018 at 11:13:58AM +0300, Timo Myyrä wrote:
> Hi,
>
> Few casts to fix dungeon-crawl build.
>
> Timo
> $OpenBSD: patch-source_newgame_cc,v 1.1.1.1 2005/10/22 15:20:28 espie Exp $
> ---- source/newgame.cc.orig Sat Oct 22 16:05:21 2005
> -+++ source/newgame.cc Sat Oct 22 16:06:32 2005
> -@@ -253,8 +253,13 @@ static bool check_saved_game(void)
> - }
> +Index: source/newgame.cc
> +--- source/newgame.cc.orig
> ++++ source/newgame.cc
> +@@ -1911,7 +1911,7 @@ void enterPlayerName(bool blankOK)
> + {
> + textcolor( CYAN );
> + if (blankOK && first_time)
> +- cprintf(EOL "Press <Enter> to answer this after race and
> class are chosen."EOL);
> ++ cprintf(EOL "Press <Enter> to answer this after race and
> class are chosen." EOL);
>
> - #else
> -+# ifdef SAVE_DIR_PATH
> -+ snprintf( char_fil, sizeof(char_fil),
> -+ SAVE_DIR_PATH "%s%d", you.your_name, (int) getuid() );
> -+# else
> - strcpy(char_fil, "");
> - strncat(char_fil, you.your_name, kFileNameLen);
> -+# endif
> - strcat(char_fil, ".sav");
> - #endif
> + first_time = false;
>
>
Why is this last chunk of the patch being removed?