diff --git a/config.cpp b/config.cpp index 2eeb241d..3f47ee76 100644 --- a/config.cpp +++ b/config.cpp @@ -2328,6 +2328,7 @@ EX int config3 = addHook(hooks_configfile, 100, [] { param_b(vid.fixed_yz, "fixed YZ", true); param_b(frustum_culling, "frustum_culling"); param_b(numerical_minefield, "numerical_minefield"); + param_b(dont_display_minecount, "dont_display_minecount"); param_b(draw_sky, "draw sky", true); param_f(linepatterns::parallel_count, "parallel_count") ->editable(0, 24, 1, "number of parallels drawn", "", 'n'); diff --git a/graph.cpp b/graph.cpp index d798e053..51d6ebf3 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5496,6 +5496,8 @@ namespace sm { EX int cmode; +EX bool dont_display_minecount = false; + EX void drawscreen() { DEBBI(DF_GRAPH, ("drawscreen")); @@ -5588,13 +5590,13 @@ EX void drawscreen() { 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(), current_display->ycenter - current_display->radius * 3/4, 2, vid.fsize, 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, vid.fsize, XLAT("WARNING: you are entering a minefield!"),