This commit is contained in:
drian
2021-02-10 21:10:15 +01:00
parent b615fe449e
commit 4a064da5b5
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -118,6 +118,7 @@ inline int iabs(int n) { return labs(n); }
typedef char string[MAXSTRLEN];
#define vformatstring(d,last,fmt) { va_list ap; va_start(ap, last); vformatstring_(d, fmt, ap); va_end(ap); }
inline void vformatstring_(char* d, const char* fmt, va_list v, int len = MAXSTRLEN) { _vsnprintf(d, len, fmt, v); d[len - 1] = 0; }
inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN)
{
size_t slen = min(strlen(s), len-1);
+1
View File
@@ -5,6 +5,7 @@
#include "hudgun.h"
VARP(autoreload, 0, 1, 1);
VARP(akimboautoswitch, 0, 1, 1);
VARP(akimboendaction, 0, 3, 3); // 0: switch to knife, 1: stay with pistol (if has ammo), 2: switch to grenade (if possible), 3: switch to primary (if has ammo) - all fallback to previous one w/o ammo for target
struct sgray {