I'm not sure what this code should do, but I fear it possibly doesn't.
In any case that's invalid COBOL.
stairs.cob, bed,cob, door.cob, trapdoor.cob, button.cob
*> Use the player's yaw to determine the facing
EVALUATE FUNCTION MOD(PLAYER-YAW(LK-PLAYER) + 45, 360)
WHEN < 90
MOVE "north" TO PLACE-PROPERTY-VALUE(2)
WHEN < 180
MOVE "east" TO PLACE-PROPERTY-VALUE(2)
WHEN < 270
MOVE "south" TO PLACE-PROPERTY-VALUE(2)
WHEN OTHER
MOVE "west" TO PLACE-PROPERTY-VALUE(2)
END-EVALUATE
... also: this code (and likely surrounding one) exists multiple times, it should possibly be moved to a callable program or copybook as well.
I'm not sure what this code should do, but I fear it possibly doesn't.
In any case that's invalid COBOL.
stairs.cob, bed,cob, door.cob, trapdoor.cob, button.cob
... also: this code (and likely surrounding one) exists multiple times, it should possibly be moved to a callable program or copybook as well.