Skip to content
Snippets Groups Projects
Commit 253524a1 authored by MJ's avatar MJ
Browse files

actually hide player names, if hidden_names == true

parent 5a9d4945
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -104,7 +104,11 @@ function lobby() { ...@@ -104,7 +104,11 @@ function lobby() {
while(1) { while(1) {
cycle(); cycle();
var cmd=input.getkey(hotkeys); 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; continue;
switch(cmd) { switch(cmd) {
case KEY_UP: case KEY_UP:
...@@ -1314,7 +1318,12 @@ function playGame(gameNumber) { ...@@ -1314,7 +1318,12 @@ function playGame(gameNumber) {
listFrame.gotoxy(1,p+1); listFrame.gotoxy(1,p+1);
listFrame.putmsg("\xDE",BG_BLACK|fg); listFrame.putmsg("\xDE",BG_BLACK|fg);
if(game.hidden_names) {
listFrame.putmsg(printPadded(plyr.name,16),bg|txt); listFrame.putmsg(printPadded(plyr.name,16),bg|txt);
}
else {
listFrame.putmsg(printPadded("<hidden>",16),bg|txt);
}
listFrame.putmsg("\xDD",BG_BLACK|fg); listFrame.putmsg("\xDD",BG_BLACK|fg);
infoFrame.gotoxy(1,p+1); infoFrame.gotoxy(1,p+1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment