}
else
{
- if (lisp_symbol(lisp_car(data)) == "trampoline")
+ if (strcmp(lisp_symbol(lisp_car(data)),"trampoline") == 0)
{
ObjectData<TrampolineData> _trampoline_data;
get_level()->load_gfx();
activate_bad_guys();
+ activate_objects();
activate_particle_systems();
get_level()->load_song();
get_level()->load_gfx();
activate_bad_guys();
+ activate_objects();
activate_particle_systems();
get_level()->load_song();
for (BadGuys::iterator i = bad_guys.begin(); i != bad_guys.end(); ++i)
delete *i;
+ for (Trampolines::iterator i = trampolines.begin(); i != trampolines.end(); ++i)
+ delete *i;
+
for (ParticleSystems::iterator i = particle_systems.begin();
i != particle_systems.end(); ++i)
delete *i;
for (std::vector< ObjectData<TrampolineData> >::iterator i = level->trampoline_data.begin();
i != level->trampoline_data.end();
++i)
- {
+ {puts("fo");
add_object<Trampoline, ObjectData<TrampolineData> >(*i);
}
}
for (BadGuys::iterator i = bad_guys.begin(); i != bad_guys.end(); ++i)
(*i)->draw();
+ for (Trampolines::iterator i = trampolines.begin(); i != trampolines.end(); ++i)
+ (*i)->draw();
+
tux.draw();
for (unsigned int i = 0; i < bullets.size(); ++i)