From a3a7a637811d3e18506d82a72e634cdc978dd2ee Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 27 May 2024 19:58:46 +0100 Subject: 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! --- src/con_.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/con_.h') diff --git a/src/con_.h b/src/con_.h index db322bc..0e6efef 100644 --- a/src/con_.h +++ b/src/con_.h @@ -1,6 +1,6 @@ /* THIS FILE SHOULD BE CALLED `con.h` BUT WINDOWS IS STUPID */ /* - * Copyright © 2023 Michael Smith + * Copyright © 2024 Michael Smith * * 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 -- cgit v1.2.3