]> git.leopard-lacewing.eu Git - cgue_weave.git/commitdiff
bug fix
authorLockedLunatic <locked.lunatic@aon.at>
Fri, 24 Jun 2016 00:05:05 +0000 (02:05 +0200)
committerLockedLunatic <locked.lunatic@aon.at>
Fri, 24 Jun 2016 00:05:05 +0000 (02:05 +0200)
timeresistant object still sent events that were reverted

Weave/Scene/Lever.cpp
Weave/Scene/Scene.cpp

index 8588c2183ef1f90e6834d01434ddbf15a7873a72..b4c2de841576b396548c67b2057c834c92d0e855 100644 (file)
@@ -24,7 +24,10 @@ void Lever::trigger()
 {
        turned = !turned;
 
-       mainScene->addEvent(this, 2);
+       if (!timeresistant)
+       {
+               mainScene->addEvent(this, 2);
+       }
 
        if (turned)
        {
index 25c94e3a5bf2a644200bbcd0dc20d55de168fa3c..653ef1c463e3d86fe42a51fb14810f883577c4b0 100644 (file)
@@ -374,7 +374,7 @@ void Scene::draw() const
                motionVecs->getTexture()->useTexture(uBLURVEC);
 
                bool firstit = true;
-               for (int i = 0; i < 1; i++)
+               for (int i = 0; i < 10; i++)
                {
 
                        postRenderPingPong[!postRenderPP]->useBuffer();