From: Mathnerd314 Date: Fri, 25 Dec 2009 22:10:39 +0000 (+0000) Subject: Add a constant for how long electrify lasts X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9fc86190036122b898dc8e4be3fdc8c87dba2790;p=supertux.git Add a constant for how long electrify lasts SVN-Revision: 6226 --- 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 */