diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-03 22:37:33 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-03 22:37:33 +0100 |
| commit | e9a32c69ca2b8d85276c71a7880de0782b8bced7 (patch) | |
| tree | bce808b94c9165fbb8c1ff098d3b8c9a4e8e8dfc /src/menu.cpp | |
| parent | Fix startup crash: use ClientCmd for fullbright; sanitize owner netvars (diff) | |
| download | hl2h-e9a32c69ca2b8d85276c71a7880de0782b8bced7.tar.gz hl2h-e9a32c69ca2b8d85276c71a7880de0782b8bced7.zip | |
Startup crash: skip fullbright command when off; drop bad owner netvars; add stage markers
Diffstat (limited to '')
| -rw-r--r-- | src/menu.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/menu.cpp b/src/menu.cpp index 0c022e4..af1d2b8 100644 --- a/src/menu.cpp +++ b/src/menu.cpp | |||
| @@ -664,9 +664,24 @@ void draw_text_col(int x, int y, const char *text, int r, int g, int b) { | |||
| 664 | // (see hkdDrawPrintText hook in hl2h.cpp): we wrap our draws in | 664 | // (see hkdDrawPrintText hook in hl2h.cpp): we wrap our draws in |
| 665 | // PushMakeCurrent/PopMakeCurrent so they are submitted with a clean clip. | 665 | // PushMakeCurrent/PopMakeCurrent so they are submitted with a clean clip. |
| 666 | void outer_draw() { | 666 | void outer_draw() { |
| 667 | static bool outer_enter = false; | ||
| 668 | if (!outer_enter) { | ||
| 669 | outer_enter = true; | ||
| 670 | logf("outer_draw: enter"); | ||
| 671 | } | ||
| 667 | poll_keyboard(); | 672 | poll_keyboard(); |
| 668 | fullbright_update(); | 673 | fullbright_update(); |
| 674 | static bool fb_done = false; | ||
| 675 | if (!fb_done) { | ||
| 676 | fb_done = true; | ||
| 677 | logf("outer_draw: after fullbright"); | ||
| 678 | } | ||
| 669 | gui_handle_input(); | 679 | gui_handle_input(); |
| 680 | static bool gui_done = false; | ||
| 681 | if (!gui_done) { | ||
| 682 | gui_done = true; | ||
| 683 | logf("outer_draw: after gui input"); | ||
| 684 | } | ||
| 670 | // HL2H_DRAW_TEST=1 draws a probe rect without needing the GUI open | 685 | // HL2H_DRAW_TEST=1 draws a probe rect without needing the GUI open |
| 671 | static bool draw_test = getenv("HL2H_DRAW_TEST") != nullptr; | 686 | static bool draw_test = getenv("HL2H_DRAW_TEST") != nullptr; |
| 672 | bool esp_on = feature_active(FEAT_ESP); | 687 | bool esp_on = feature_active(FEAT_ESP); |
