mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
port: fix #163
This commit is contained in:
1 parent
c10050a14c
commit
cb1e1e5dca
3 files changed
+16
No files matched your search
@@ -1191,7 +1191,11 @@ void handInflictMeleeDamage(s32 handnum, struct gset *gset, bool arg2)
|
||||
struct model *model;
|
||||
struct weaponfunc *func = gsetGetWeaponFunction(gset);
|
||||
|
||||
#ifdef AVOID_UB
|
||||
if (func && (func->type & 0xff) == INVENTORYFUNCTYPE_MELEE) {
|
||||
#else
|
||||
if ((func->type & 0xff) == INVENTORYFUNCTYPE_MELEE) {
|
||||
#endif
|
||||
struct weaponfunc_melee *meleefunc = (struct weaponfunc_melee *)func;
|
||||
rangelimit = meleefunc->range;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user