From 9fc86190036122b898dc8e4be3fdc8c87dba2790 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 SVN-Revision: 6226 --- 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