1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00

dont_display_minecount flag

This commit is contained in:
Zeno Rogue 2022-05-17 09:43:45 +02:00
parent 238422fe89
commit a703e1af2d
2 changed files with 5 additions and 2 deletions

View File

@ -2328,6 +2328,7 @@ EX int config3 = addHook(hooks_configfile, 100, [] {
param_b(vid.fixed_yz, "fixed YZ", true); param_b(vid.fixed_yz, "fixed YZ", true);
param_b(frustum_culling, "frustum_culling"); param_b(frustum_culling, "frustum_culling");
param_b(numerical_minefield, "numerical_minefield"); param_b(numerical_minefield, "numerical_minefield");
param_b(dont_display_minecount, "dont_display_minecount");
param_b(draw_sky, "draw sky", true); param_b(draw_sky, "draw sky", true);
param_f(linepatterns::parallel_count, "parallel_count") param_f(linepatterns::parallel_count, "parallel_count")
->editable(0, 24, 1, "number of parallels drawn", "", 'n'); ->editable(0, 24, 1, "number of parallels drawn", "", 'n');

View File

@ -5496,6 +5496,8 @@ namespace sm {
EX int cmode; EX int cmode;
EX bool dont_display_minecount = false;
EX void drawscreen() { EX void drawscreen() {
DEBBI(DF_GRAPH, ("drawscreen")); DEBBI(DF_GRAPH, ("drawscreen"));
@ -5588,13 +5590,13 @@ EX void drawscreen() {
if(tmines == 7) seenSevenMines = true; if(tmines == 7) seenSevenMines = true;
for(int p: player_indices()) if(!dont_display_minecount) for(int p: player_indices())
displayfr(vid.xres * (p+.5) / numplayers(), displayfr(vid.xres * (p+.5) / numplayers(),
current_display->ycenter - current_display->radius * 3/4, 2, current_display->ycenter - current_display->radius * 3/4, 2,
vid.fsize, vid.fsize,
mines[p] > 7 ? its(mines[p]) : XLAT(minetexts[mines[p]]), minecolors[mines[p]%10], 8); mines[p] > 7 ? its(mines[p]) : XLAT(minetexts[mines[p]]), minecolors[mines[p]%10], 8);
if(minefieldNearby && !shmup::on && cwt.at->land != laMinefield && cwt.peek()->land != laMinefield) { if(minefieldNearby && !shmup::on && cwt.at->land != laMinefield && cwt.peek()->land != laMinefield && !dont_display_minecount) {
displayfr(vid.xres/2, current_display->ycenter - current_display->radius * 3/4 - vid.fsize*3/2, 2, displayfr(vid.xres/2, current_display->ycenter - current_display->radius * 3/4 - vid.fsize*3/2, 2,
vid.fsize, vid.fsize,
XLAT("WARNING: you are entering a minefield!"), XLAT("WARNING: you are entering a minefield!"),