make sure inhandnade is cleaned up if bounceent is removed

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4274 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2009-03-16 21:04:21 +00:00
parent 74fd154656
commit e2ff773e0e
3 changed files with 14 additions and 2 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
class playerent;
class bounceent;
struct weapon
{
@@ -38,6 +39,7 @@ struct weapon
virtual void ondeselecting() {}
virtual void onammopicked() {}
virtual void onownerdies() {}
virtual void removebounceent(bounceent *b) {}
void sendshoot(vec &from, vec &to);
bool modelattacking();
@@ -49,7 +51,6 @@ struct weapon
};
class grenadeent;
class bounceent;
enum { GST_NONE, GST_INHAND, GST_THROWING };
@@ -74,6 +75,7 @@ struct grenades : weapon
bool busy();
void onselecting();
void onownerdies();
void removebounceent(bounceent *b);
int flashtime() const;
};