diff options
Diffstat (limited to 'src/ui.cpp')
-rw-r--r-- | src/ui.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -816,9 +816,12 @@ DONE: case SDLK_RIGHT: player->inv->sel++; break; - case SDLK_f: + case SDLK_l: player->light^=true; break; + case SDLK_f: + currentWorld->addLight({player->loc.x + SCREEN_WIDTH/2, player->loc.y},{1.0f,1.0f,1.0f}); + break; default: break; } |