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/netvars.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/netvars.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/netvars.cpp b/src/netvars.cpp index 834aa2f..238af70 100644 --- a/src/netvars.cpp +++ b/src/netvars.cpp | |||
| @@ -92,14 +92,6 @@ static void collect_netvars(uintptr_t table, uintptr_t base_off, int depth) { | |||
| 92 | } else if (strcmp(pname2, "m_hActiveWeapon") == 0 && | 92 | } else if (strcmp(pname2, "m_hActiveWeapon") == 0 && |
| 93 | g_net.activeweapon < 0) { | 93 | g_net.activeweapon < 0) { |
| 94 | g_net.activeweapon = (int)(base_off + (uint32_t)poff); | 94 | g_net.activeweapon = (int)(base_off + (uint32_t)poff); |
| 95 | } else if (strcmp(pname2, "m_hOwnerEntity") == 0 && g_net.owner < 0) { | ||
| 96 | int off = (int)(base_off + (uint32_t)poff); | ||
| 97 | if (off > 0 && off < 0x2000) | ||
| 98 | g_net.owner = off; | ||
| 99 | } else if (strcmp(pname2, "m_hOwner") == 0 && g_net.weapon_owner < 0) { | ||
| 100 | int off = (int)(base_off + (uint32_t)poff); | ||
| 101 | if (off > 0 && off < 0x2000) | ||
| 102 | g_net.weapon_owner = off; | ||
| 103 | } else if (strcmp(pname2, "m_iTeamNum") == 0 && g_net.teamnum < 0) { | 95 | } else if (strcmp(pname2, "m_iTeamNum") == 0 && g_net.teamnum < 0) { |
| 104 | g_net.teamnum = (int)(base_off + (uint32_t)poff); | 96 | g_net.teamnum = (int)(base_off + (uint32_t)poff); |
| 105 | } else if (strcmp(pname2, "m_vecOrigin") == 0 && g_net.origin < 0) { | 97 | } else if (strcmp(pname2, "m_vecOrigin") == 0 && g_net.origin < 0) { |
