diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2024-05-27 19:58:46 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2024-05-27 19:58:46 +0100 |
commit | a3a7a637811d3e18506d82a72e634cdc978dd2ee (patch) | |
tree | 55278b90d094058ae03e7007cc5a0d887be8de8d /src/con_.h | |
parent | 33a9c3eca5bfc972622935cd455972d64eb513a3 (diff) |
Hide custom crosshair in menus/load screens
This isn't perfect logic - the standard crosshair has a lot more cases
where it's not displayed - but it's better than nothing and avoids
looking stupid as often.
In the process, also fix the IConVar virtual table being one entry too
small, which somehow wasn't a problem until it led to vtidx_IsInGame
here getting clobbered and causing hard-to-debug crashes. Woopsy!
Diffstat (limited to 'src/con_.h')
-rw-r--r-- | src/con_.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ /* THIS FILE SHOULD BE CALLED `con.h` BUT WINDOWS IS STUPID */ /* - * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com> + * Copyright © 2024 Michael Smith <mikesmiffy128@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -219,7 +219,7 @@ extern struct _con_vtab_iconvar_wrap { ssize topoffset; const struct itanium_vmi_type_info *rtti; #endif - void *vtable[7]; + void *vtable[8]; } _con_vtab_iconvar_wrap; #define _con_vtab_iconvar _con_vtab_iconvar_wrap.vtable |