From d9aff6e24a0b0cb650331c77ab724eb8b0109bd6 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 14 Jun 2008 10:07:12 +0000 Subject: fixed potential camera bug for cnontrolable entities without model --- src/core/entity.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/entity.cc b/src/core/entity.cc index e9985c3..db40f76 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -114,15 +114,16 @@ Entity::Entity(std::istream & is) is >> entity_flags; is >> entity_location; is >> entity_color; + is >> s; // shape + entity_shape = (Shape) s; + is >> entity_radius; is >> entity_axis[0]; is >> entity_axis[1]; entity_axis[2] = math::crossproduct(entity_axis.forward(), entity_axis.left()); - entity_shape = (Shape) s ; - char c; // read label while ( (is.get(c)) && (c != '"')); -- cgit v1.2.3