Mercurial > hg > early-roguelike
view arogue5/network.h @ 112:ee250e3646fd
Don't truncate player name in savefile name or log message.
The player name is stored in whoami[], which is length 80 in most games
(1024 in rogue5). Only the first 10 chars were used to create
file_name, because that buffer is the same length. Increasing the size
of file_name to 256 permits using all of whoami.
The name is also no longer truncated to 20 chars when writing the log.
All games should now be able to handle 79-character names without
collisions. Anything more would break save compatibility.
author | John "Elwin" Edwards |
---|---|
date | Sun, 23 Mar 2014 21:27:14 -0700 |
parents | 0ed67132cf10 |
children |
line wrap: on
line source
/* * Networking information -- should not vary among networking machines * * Advanced Rogue * Copyright (C) 1984, 1985 Michael Morgan, Ken Dalka and AT&T * All rights reserved. * * See the file LICENSE.TXT for full copyright and licensing information. */ #define SYSLEN 9 #define LOGLEN 8 #define NUMNET 6 #undef NUMNET struct network { char *system; char *rogue; }; extern struct network Network[]; /* This system's name -- should not be defined if uname() is available */