1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 10:27:45 +00:00

fixed the compilation without CAP_COMMANDLINE or without CAP_SVG or fakemobile

This commit is contained in:
Zeno Rogue
2018-07-22 12:50:03 +02:00
parent 4d2f79ba95
commit 329a2fa783
7 changed files with 26 additions and 16 deletions

View File

@@ -850,7 +850,8 @@ void auto_creator() {
while(runlevel < 10) step(1000);
start_game_on_created_map();
}
#if CAP_COMMANDLINE
int readArgs() {
using namespace arg;
@@ -874,6 +875,7 @@ int readArgs() {
else return 1;
return 0;
}
#endif
unsigned char density_code() {
if(cellcount < 128) return cellcount;
@@ -904,7 +906,9 @@ array<heptagon*, 3> get_masters(cell *c) {
}
auto hook =
#if CAP_COMMANDLINE
addHook(hooks_args, 100, readArgs) +
#endif
addHook(hooks_drawcell, 100, draw_cell_schematics) +
addHook(shmup::hooks_turn, 100, step);