Add a constant for how long electrify lasts
authorMathnerd314 <man.is.allan@gmail.com>
Fri, 25 Dec 2009 22:10:39 +0000 (22:10 +0000)
committerMathnerd314 <man.is.allan@gmail.com>
Fri, 25 Dec 2009 22:10:39 +0000 (22:10 +0000)
SVN-Revision: 6226

src/object/thunderstorm.cpp

index 7ebc16d..ba4e549 100644 (file)
@@ -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 */