Skip to content

Commit

Permalink
Merge pull request #1561 from paulsapps/master
Browse files Browse the repository at this point in the history
default throwables in a new path to grenades to avoid crash
  • Loading branch information
Paul authored Sep 4, 2022
2 parents 2a9747d + 505d5df commit 212637b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/AliveLibAE/PathDataExtensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ void Path_Set_NewData_FromLvls()
if (!rBlyRec.field_4_pPathData)
{
rBlyRec.field_4_pPathData = &GetPathData(lvlIdx)[pExt->mPathId];
// HACK: Set throwable type in this path to grenades
rBlyRec.field_C_overlay_id = 100;
rPath.field_18_num_paths++;
}
PathData& rPathData = *rBlyRec.field_4_pPathData;
Expand Down
2 changes: 2 additions & 0 deletions Source/AliveLibAO/PathDataExtensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ void Path_Set_NewData_FromLvls()
if (!rBlyRec.field_4_pPathData)
{
rBlyRec.field_4_pPathData = &GetPathData(lvlIdx)[pExt->mPathId];
// HACK: Set throwable type in this path to grenades
rBlyRec.field_C_overlay_id = 3;
rPath.field_18_num_paths++;
}
PathData& rPathData = *rBlyRec.field_4_pPathData;
Expand Down

0 comments on commit 212637b

Please sign in to comment.