mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
port: fix #541
This commit is contained in:
1 parent
9c4aded403
commit
67675d8980
1 file changed
+10
-6
@@ -2114,14 +2114,18 @@ bool aiIfGunUnclaimed(void)
|
||||
g_Vars.aioffset += 5;
|
||||
}
|
||||
} else {
|
||||
struct weaponobj *weapon = g_Vars.chrdata->gunprop->weapon;
|
||||
struct prop *prop = g_Vars.chrdata->gunprop;
|
||||
|
||||
if (weapon && weapon->base.prop) {
|
||||
weapon->base.flags |= OBJFLAG_FORCENOBOUNCE;
|
||||
g_Vars.aioffset = chraiGoToLabel(g_Vars.ailist, g_Vars.aioffset, cmd[4]);
|
||||
} else {
|
||||
g_Vars.aioffset += 5;
|
||||
if (prop && prop->weapon && prop->parent == NULL && prop->type == PROPTYPE_WEAPON) {
|
||||
struct weaponobj *weapon = prop->weapon;
|
||||
if (weapon->base.prop) {
|
||||
weapon->base.flags |= OBJFLAG_FORCENOBOUNCE;
|
||||
g_Vars.aioffset = chraiGoToLabel(g_Vars.ailist, g_Vars.aioffset, cmd[4]);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
g_Vars.aioffset += 5;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user