Skip to content
Snippets Groups Projects
Commit 5fe2127e authored by MJ's avatar MJ
Browse files

actually hide player names, if hidden_names == true

parent 4ebd64e8
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,11 @@ function lobby() {
while(1) {
cycle();
var cmd=input.getkey(hotkeys);
if(cmd === undefined)
if(typeof cmd == "object") {
log(LOG_DEBUG,JSON.stringify(cmd));
cmd = cmd.key;
}
if(cmd === undefined || cmd === null)
continue;
switch(cmd) {
case KEY_UP:
......@@ -1314,7 +1318,12 @@ function playGame(gameNumber) {
listFrame.gotoxy(1,p+1);
listFrame.putmsg("\xDE",BG_BLACK|fg);
listFrame.putmsg(printPadded(plyr.name,16),bg|txt);
if(game.hidden_names) {
listFrame.putmsg(printPadded(plyr.name,16),bg|txt);
}
else {
listFrame.putmsg(printPadded("<hidden>",16),bg|txt);
}
listFrame.putmsg("\xDD",BG_BLACK|fg);
infoFrame.gotoxy(1,p+1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment