.doc/ext/reflex/update_event.cpp in reflexion-0.1.23 vs .doc/ext/reflex/update_event.cpp in reflexion-0.1.24
- old
+ new
@@ -20,35 +20,36 @@
static
VALUE initialize(VALUE self, VALUE now, VALUE dt)
{
CHECK;
- THIS->now = to<double>(now);
- THIS->dt = to<float>(dt);
+ *THIS = Reflex::UpdateEvent(
+ to<double>(now),
+ to<float>(dt));
return rb_call_super(0, NULL);
}
static
VALUE initialize_copy(VALUE self, VALUE obj)
{
CHECK;
- *THIS = to<Reflex::UpdateEvent&>(obj);
+ *THIS = to<Reflex::UpdateEvent&>(obj).dup();
return self;
}
static
VALUE now(VALUE self)
{
CHECK;
- return value(THIS->now);
+ return value(THIS->now());
}
static
VALUE dt(VALUE self)
{
CHECK;
- return value(THIS->dt);
+ return value(THIS->dt());
}
static Class cUpdateEvent;