UNIX, VMS, DEF_PAGER, MICRO and MFLOPPY globals moved to g.
This commit is contained in:
@@ -119,15 +119,15 @@ getlock()
|
||||
/* default value of lock[] is "1lock" where '1' gets changed to
|
||||
'a','b',&c below; override the default and use <uid><charname>
|
||||
if we aren't restricting the number of simultaneous games */
|
||||
if (!locknum)
|
||||
if (!g.lockum)
|
||||
Sprintf(lock, "%u%s", (unsigned) getuid(), g.plname);
|
||||
|
||||
regularize(lock);
|
||||
set_levelfile_name(lock, 0);
|
||||
|
||||
if (locknum) {
|
||||
if (locknum > 25)
|
||||
locknum = 25;
|
||||
if (g.lockum) {
|
||||
if (g.lockum > 25)
|
||||
g.lockum = 25;
|
||||
|
||||
do {
|
||||
lock[0] = 'a' + i++;
|
||||
@@ -145,7 +145,7 @@ getlock()
|
||||
if (veryold(fd) && eraseoldlocks())
|
||||
goto gotlock;
|
||||
(void) close(fd);
|
||||
} while (i < locknum);
|
||||
} while (i < g.lockum);
|
||||
|
||||
unlock_file(HLOCK);
|
||||
error("Too many hacks running now.");
|
||||
|
||||
Reference in New Issue
Block a user