Skip to content

Commit

Permalink
default Goody angle to zero
Browse files Browse the repository at this point in the history
In fact, all objects with "angle" would just pull the last value parsed, for any object.  This will set it to zero if not set in the current ALF node.
  • Loading branch information
tra committed Jun 25, 2024
1 parent 1b43cc5 commit 28dcdad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/CGoody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,6 @@ void CGoody::FrameAction() {
// the goody heading can make a difference in determing a collision with a Hector
// FRandSeed += heading;
UpdateFRandSeed((uint32_t)heading);
// SDL_Log("fn = %d, goody=%ld: heading = %8d, FRandSeed = %10d\n",
// itsGame->frameNumber, ident, heading, (Fixed)FRandSeed);
// SDL_Log("fn = %d, goody=%ld: heading = %8d, FRandSeed = %10d, grenades=%d, missiles=%d\n",
// itsGame->frameNumber, ident, heading, (Fixed)FRandSeed, grenades, missiles);
}
3 changes: 3 additions & 0 deletions src/level/LevelLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ struct ALFWalker: pugi::xml_tree_walker {

lastArcAngle = (900 - arcAngle) % 360;
lastDomeAngle = 360 - arcAngle;
} else {
lastArcAngle = 0;
lastDomeAngle = 0;
}

return true;
Expand Down

0 comments on commit 28dcdad

Please sign in to comment.