From a93177142faf2d357c167280427fe5e440b84072 Mon Sep 17 00:00:00 2001 From: mathnerd314 Date: Fri, 25 Dec 2009 22:10:39 +0000 Subject: [PATCH] Add a constant for how long electrify lasts git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6226 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- src/object/thunderstorm.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/object/thunderstorm.cpp b/src/object/thunderstorm.cpp index 7ebc16d73..ba4e5499d 100644 --- a/src/object/thunderstorm.cpp +++ b/src/object/thunderstorm.cpp @@ -27,6 +27,7 @@ namespace { const float LIGHTNING_DELAY = 2.0f; const float FLASH_DISPLAY_TIME = 0.1f; +const float ELECTRIFY_TIME = 0.5f; } Thunderstorm::Thunderstorm(const Reader& reader) : @@ -137,8 +138,8 @@ Thunderstorm::flash() void Thunderstorm::electrify() { - Sector::current()->add_object(new Electrifier(200, 1421, 0.5)); - Sector::current()->add_object(new Electrifier(201, 1422, 0.5)); + Sector::current()->add_object(new Electrifier(200, 1421, ELECTRIFY_TIME)); + Sector::current()->add_object(new Electrifier(201, 1422, ELECTRIFY_TIME)); } /* EOF */ -- 2.11.0