Fix precedence of par message.
This commit is contained in:
parent
13642c7a1e
commit
09a89880e6
@ -944,6 +944,10 @@ const INTERFACE = {
|
|||||||
case 3: message = LANG("cpu"); break;
|
case 3: message = LANG("cpu"); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(GAME_DATA.config.rules.par != 0) {
|
||||||
|
message = "Par " + GAME_DATA.config.rules.par;
|
||||||
|
}
|
||||||
|
|
||||||
switch(GAME_DATA.state.code) {
|
switch(GAME_DATA.state.code) {
|
||||||
case GAME.Const.State.Resign: {
|
case GAME.Const.State.Resign: {
|
||||||
ctx.fillStyle = INTERFACE.Color.HintCheck;
|
ctx.fillStyle = INTERFACE.Color.HintCheck;
|
||||||
@ -961,10 +965,6 @@ const INTERFACE = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(GAME_DATA.config.rules.par != 0) {
|
|
||||||
message = "Par " + GAME_DATA.config.rules.par;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(message !== null) {
|
if(message !== null) {
|
||||||
ctx.textBaseline = "bottom";
|
ctx.textBaseline = "bottom";
|
||||||
ctx.textAlign = "left";
|
ctx.textAlign = "left";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user