Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/ucsd-cse125-sp24/group3 into…
Browse files Browse the repository at this point in the history
… dev
  • Loading branch information
Tyler-Lentz committed Jun 7, 2024
2 parents ce94150 + 82f5204 commit 71cd0aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/client/animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ Animation::Animation(const std::string& animationPath, Model* model) {
readMissingBones(animation, *model);
}

Animation::Animation(const std::string& animationDirPath, const std::string& animName, int frames) {
Animation::Animation(const std::string& animationDirPath, const std::string& animName, int frames):
m_rootNode({})
{
// not used by this constructor
m_duration = 0;
m_ticksPerSecond = 0;

for (int i = 1; i <= frames; i++) {
auto frame_model_path = animationDirPath + "/" + animName + std::to_string(i) + ".obj";
auto frame_model = new Model(frame_model_path, true);
Expand Down
2 changes: 0 additions & 2 deletions src/server/game/teleportertrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ void TeleporterTrap::doCollision(Object* other, ServerGameState& state) {
}

int attempts = 0;
bool good = false;

while (true) {
attempts++;
Expand All @@ -62,7 +61,6 @@ void TeleporterTrap::doCollision(Object* other, ServerGameState& state) {
}

if (grid.getCell(r_col, r_row)->type == CellType::Empty) {
good = true;
break;
}
}
Expand Down

0 comments on commit 71cd0aa

Please sign in to comment.