projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made buttjump a bit easier to perform
[supertux.git]
/
src
/
object
/
thunderstorm.cpp
diff --git
a/src/object/thunderstorm.cpp
b/src/object/thunderstorm.cpp
index
5a9cb36
..
656bd0a
100644
(file)
--- a/
src/object/thunderstorm.cpp
+++ b/
src/object/thunderstorm.cpp
@@
-37,12
+37,12
@@
#include "log.hpp"
namespace {
#include "log.hpp"
namespace {
- const float LIGHTNING_DELAY = 2.0;
- const float FLASH_DISPLAY_TIME = 0.1;
+ const float LIGHTNING_DELAY = 2.0
f
;
+ const float FLASH_DISPLAY_TIME = 0.1
f
;
}
Thunderstorm::Thunderstorm(const lisp::Lisp& reader)
}
Thunderstorm::Thunderstorm(const lisp::Lisp& reader)
-
: name(""),
running(true), interval(10.0f)
+
:
running(true), interval(10.0f)
{
reader.get("name", name);
reader.get("running", running);
{
reader.get("name", name);
reader.get("running", running);
@@
-74,8
+74,8
@@
Thunderstorm::update(float )
}
}
}
}
-void
-Thunderstorm::draw(DrawingContext& context)
+void
+Thunderstorm::draw(DrawingContext& context)
{
if (!flash_display_timer.started()) return;
{
if (!flash_display_timer.started()) return;
@@
-91,7
+91,7
@@
void
Thunderstorm::expose(HSQUIRRELVM vm, SQInteger table_idx)
{
if (name == "") return;
Thunderstorm::expose(HSQUIRRELVM vm, SQInteger table_idx)
{
if (name == "") return;
- Scripting::Thunderstorm* interface =
static_cast<Scripting::Thunderstorm*>
(this);
+ Scripting::Thunderstorm* interface =
new Scripting::Thunderstorm
(this);
expose_object(vm, table_idx, interface, name, true);
}
expose_object(vm, table_idx, interface, name, true);
}
@@
-149,4
+149,3
@@
Thunderstorm::electrify()
}
IMPLEMENT_FACTORY(Thunderstorm, "thunderstorm");
}
IMPLEMENT_FACTORY(Thunderstorm, "thunderstorm");
-