Mercurial > hg > early-roguelike
annotate rogue3/install-sh @ 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 | 07c4d4883ef2 |
| children |
| rev | line source |
|---|---|
| 88 | 1 #!/bin/sh |
| 2 # install - install a program, script, or datafile | |
| 3 | |
| 4 scriptversion=2011-11-20.07; # UTC | |
| 5 | |
| 6 # This originates from X11R5 (mit/util/scripts/install.sh), which was | |
| 7 # later released in X11R6 (xc/config/util/install.sh) with the | |
| 8 # following copyright and license. | |
| 9 # | |
| 10 # Copyright (C) 1994 X Consortium | |
| 11 # | |
| 12 # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 13 # of this software and associated documentation files (the "Software"), to | |
| 14 # deal in the Software without restriction, including without limitation the | |
| 15 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
| 16 # sell copies of the Software, and to permit persons to whom the Software is | |
| 17 # furnished to do so, subject to the following conditions: | |
|
07c4d4883ef2
rogue3: begin porting to autoconf. |
