From 7a5cbc6b55fe86588c3b41a65fcfada3d9b2201c Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 12 Feb 2018 19:51:12 +0300 Subject: [PATCH] no message --- src/world.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/world.c b/src/world.c index 21c236e..384eadf 100644 --- a/src/world.c +++ b/src/world.c @@ -61,26 +61,9 @@ static void drawGrid(World* world) TIC_MAP_SCREEN_WIDTH+1, TIC_MAP_SCREEN_HEIGHT+1, (tic_color_red)); } -// static void processKeydown(World* world, tic_keycode keycode) -// { -// switch(keycode) -// { -// case SDLK_TAB: setStudioMode(TIC_MAP_MODE); break; -// } -// } - static void tick(World* world) { - // SDL_Event* event = NULL; - // while ((event = pollEvent())) - // { - // switch(event->type) - // { - // case SDL_KEYDOWN: - // processKeydown(world, event->key.keysym.sym); - // break; - // } - // } + if(isKeyBeenPressed(tic_key_tab)) setStudioMode(TIC_MAP_MODE); memcpy(&world->tic->ram.vram, world->preview, PREVIEW_SIZE); @@ -128,6 +111,5 @@ void initWorld(World* world, tic_mem* tic, Map* map) tic_tool_poke4(world->preview, i, max); } - } } \ No newline at end of file