Skip to content

Commit bf351bd

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Add Emscripten builds
1 parent ee88619 commit bf351bd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/main.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ SDL_AppResult SDL_AppEvent(void*, SDL_Event* event) {
166166
SDL_AppResult SDL_AppIterate(void*) {
167167
auto i = engine.onFrame();
168168
SDL_LogInfo(0, "%s:%i:iterate:%i", __FILE__, __LINE__, i);
169+
tcod::draw_rect(*TCODConsole::root->get_data(), {0,0,10,10}, 'x', tcod::ColorRGB{255,255,255}, {});
170+
TCODConsole::root->flush();
169171
return i;
170172
}
171173
//return engine.onFrame(); }
@@ -182,7 +184,7 @@ SDL_AppResult SDL_AppInit(void**, int argc, char** argv) {
182184
userPref.load();
183185
Powerup::init();
184186

185-
//threadPool = new ThreadPool();
187+
threadPool = new ThreadPool();
186188

187189
// initialise random number generator
188190
//if ( ! saveGame.load(PHASE_INIT) ) {
@@ -203,13 +205,9 @@ SDL_AppResult SDL_AppInit(void**, int argc, char** argv) {
203205

204206
sound.initialize();
205207
engine.setKeyboardMode(UMBRA_KEYBOARD_SDL);
206-
if (engine.initialise(TCOD_RENDERER_SDL2)) {
207-
//engine.run();
208-
//return SDL_APP_SUCCESS;
209-
SDL_LogInfo(0, "%s:%i:setup-done", __FILE__, __LINE__);
210-
return SDL_APP_CONTINUE;
211-
}
212-
return SDL_APP_FAILURE;
208+
if (!engine.initialise(TCOD_RENDERER_SDL2)) return SDL_APP_FAILURE;
209+
SDL_LogInfo(0, "%s:%i:setup-done", __FILE__, __LINE__);
210+
return SDL_APP_CONTINUE;
213211
}
214212

215213
void SDL_AppQuit(void*, SDL_AppResult) {

0 commit comments

Comments
 (0)