projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Badguys from the start of the level were not appearing. Fixed.
[supertux.git]
/
src
/
sector.cpp
diff --git
a/src/sector.cpp
b/src/sector.cpp
index
017eff7
..
1420d7f
100644
(file)
--- a/
src/sector.cpp
+++ b/
src/sector.cpp
@@
-701,10
+701,12
@@
Sector::add_bouncy_brick(const Vector& pos)
}
BadGuy*
}
BadGuy*
-Sector::add_bad_guy(float x, float y, BadGuyKind kind)
+Sector::add_bad_guy(float x, float y, BadGuyKind kind
, bool activate
)
{
BadGuy* badguy = new BadGuy(kind, x, y);
add_object(badguy);
{
BadGuy* badguy = new BadGuy(kind, x, y);
add_object(badguy);
+ if(activate)
+ badguy->activate(LEFT);
return badguy;
}
return badguy;
}
@@
-756,6
+758,12
@@
Sector::add_particles(const Vector& epicenter, const Vector& velocity, const Vec
return true;
}
return true;
}
+void
+Sector::add_floating_text(const Vector& pos, const std::string& text)
+{
+ add_object(new FloatingText(pos, text));
+}
+
/* Break a brick: */
bool
Sector::trybreakbrick(const Vector& pos, bool small)
/* Break a brick: */
bool
Sector::trybreakbrick(const Vector& pos, bool small)