Skip to content

Commit

Permalink
propobj checks if any coop player is using it
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonNyan committed May 27, 2024
1 parent 3ffedf3 commit 52d56f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/propobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -16233,7 +16233,7 @@ bool propobjInteract(struct prop *prop)
if (g_Vars.normmplayerisrunning) {
scenarioHandleActivatedProp(g_Vars.currentplayer->prop->chr, prop);
} else {
if (g_Vars.currentplayernum == g_Vars.coopplayernum) {
if (g_Vars.coopplayers[g_Vars.currentplayernum]) {
obj->hidden |= OBJHFLAG_ACTIVATED_BY_COOP;
} else if (g_Vars.currentplayernum == g_Vars.bondplayernum) {
obj->hidden |= OBJHFLAG_ACTIVATED_BY_BOND;
Expand Down

0 comments on commit 52d56f0

Please sign in to comment.