Skip to content

Commit

Permalink
😕
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler-Lentz committed Jun 7, 2024
1 parent 1d25e1f commit caee1d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"game": {
"maze": {
"directory": "maps",
"procedural": false,
"procedural": true,
"maze_file": "test/itemRoom.maze"
},
"disable_enemies": false
Expand All @@ -16,7 +16,7 @@
"lobby_broadcast": true,
"max_players": 2,
"disable_dm": false,
"skip_intro": false
"skip_intro": true
},
"client": {
"default_name": "Conan O'Brien",
Expand Down
6 changes: 6 additions & 0 deletions src/server/game/projectile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ void Projectile::doCollision(Object* other, ServerGameState& state) {
//handle cases for spell projectiles
else {
SpellOrb* orb = dynamic_cast<SpellOrb*>(this);

if (orb == nullptr) {
std::cout << "Just saved us from a seg fault 6/7/2024 1:07am BRUHHHHHHHHHHHHHhhhhhhhhh\n";
return;
}

switch (orb->sType) {
case SpellType::Fireball: {
// do damage if creature
Expand Down

0 comments on commit caee1d5

Please sign in to comment.