diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-09 08:14:12 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-09 08:14:12 -0500 |
commit | 380137ca06c2c74806c1838cb10ef3a17dda8406 (patch) | |
tree | de0058e97e1259efc07b153c0b46bebb8772fa5a /src/world.cpp | |
parent | d2aa39603eb8a26142a0230188d2572fb0398af5 (diff) |
fade improvements
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/world.cpp b/src/world.cpp index f751287..cb5f3ec 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -1,4 +1,5 @@ #include <world.h> +#include <ui.h> #define getWidth(w) ((w->lineCount-GEN_INC)*HLINE) // Calculates the width of world 'w' @@ -923,6 +924,9 @@ World *World::goInsideStructure(Player *p){ if(p->loc.x > b->loc.x && p->loc.x + p->width < b->loc.x + b->width ){ thing.push_back(this); + ui::toggleBlackFast(); + ui::waitForCover(); + ui::toggleBlackFast(); return (World *)b->inside; } } @@ -932,6 +936,9 @@ World *World::goInsideStructure(Player *p){ World *tmp = (World *)thing.back(); p->loc.x = b->loc.x + (b->width / 2) - (p->width / 2); thing.erase(thing.end()-1); + ui::toggleBlackFast(); + ui::waitForCover(); + ui::toggleBlackFast(); return tmp; } } |