Skip to content

Commit

Permalink
fix autosave on things that replace keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaulwurff committed Oct 28, 2019
1 parent 1820971 commit 1c69dec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cp -f $name.pk3 $name-$(git describe --abbrev=0 --tags).pk3 \
$gzdoom \
-file \
$name.pk3 \
~/Programs/Games/wads/maps/DOOMTEST.wad \
~/Programs/Games/wads/maps/test/DOOMTEST.wad \
"$1" "$2" \
+map test \
-nomonsters \
Expand Down
3 changes: 2 additions & 1 deletion zscript/m8f_aas_event_source.zs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ class m8f_aas_event_source : EventHandler

for (int i = 0; i < n_saveable_items_classes; ++i)
{
if (!(item is saveable_item_classes[i])) { continue; }
if (!(item is saveable_item_classes[i]
|| Actor.GetReplacee(item.GetClassName()) is saveable_item_classes[i])) { continue; }

if (owner == null)
{
Expand Down

0 comments on commit 1c69dec

Please sign in to comment.