Skip to content

Commit

Permalink
ScriptedIOControl: Ignore replaceme command for spider_web_0013
Browse files Browse the repository at this point in the history
Fixes: issue #963
  • Loading branch information
dscharrer committed Jun 30, 2021
1 parent 67e4d6d commit 0b0994a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/script/ScriptedIOControl.cpp
Expand Up @@ -114,7 +114,12 @@ class ReplaceMeCommand : public Command {

// Delay destruction of the object to avoid invalid references
bool removed = false;
if(ARX_INTERACTIVE_DestroyIOdelayed(io)) {
if(io->id().className() == "spider_web" && io->id().instance() == 13) {

// TODO(patch-scripts) Workaround for http://arx.vg/963
io->show = SHOW_FLAG_MEGAHIDE;

} else if(ARX_INTERACTIVE_DestroyIOdelayed(io)) {

spells.replaceCaster(io->index(), ioo->index());
removeFromInventories(io);
Expand Down

0 comments on commit 0b0994a

Please sign in to comment.