project-imprimis / imprimis

Imprimis, the team based destroyable world shooter game
https://project-imprimis.github.io/www/
15 stars 5 forks source link

'findplayerspawn' was not declared in this scope #58

Closed Duskhorn closed 2 years ago

Duskhorn commented 2 years ago

Describe the issue Upon compilation using make, it fails with the following:

game/game.h: In member function 'virtual void game::clientmode::pickspawn(gameent*)':
game/game.h:791:46: error: 'findplayerspawn' was not declared in this scope
  791 |         virtual void pickspawn(gameent *d) { findplayerspawn(d, -1, modecheck(gamemode, Mode_Team) ? d->team : 0); }
      |                                              ^~~~~~~~~~~~~~~
In file included from game/cserver.cpp:1:
game/game.h: In member function 'virtual void game::clientmode::pickspawn(gameent*)':
game/game.h:791:46: error: 'findplayerspawn' was not declared in this scope
  791 |         virtual void pickspawn(gameent *d) { findplayerspawn(d, -1, modecheck(gamemode, Mode_Team) ? d->team : 0); }
      |                                              ^~~~~~~~~~~~~~~
In file included from game/edit.cpp:1:
game/game.h: In member function 'virtual void game::clientmode::pickspawn(gameent*)':
game/game.h:791:46: error: 'findplayerspawn' was not declared in this scope
  791 |         virtual void pickspawn(gameent *d) { findplayerspawn(d, -1, modecheck(gamemode, Mode_Team) ? d->team : 0); }
      |                                              ^~~~~~~~~~~~~~~
In file included from game/client.cpp:3:
game/game.h: In member function 'virtual void game::clientmode::pickspawn(gameent*)':
game/game.h:791:46: error: 'findplayerspawn' was not declared in this scope
  791 |         virtual void pickspawn(gameent *d) { findplayerspawn(d, -1, modecheck(gamemode, Mode_Team) ? d->team : 0); }
      |                                              ^~~~~~~~~~~~~~~

Inspecting the code, it seems like the function is declared in "entities.cpp" but not added to the correct header files, thus causing the error. I'd fix this myself but I have no idea what to touch

Important Information:

no-lex commented 2 years ago

d38a3140d579c2ca364eff4a2e2657b6e508a3db closes this.