quick hack to prevent template re-instatiation

This commit is contained in:
Patrick Parker 2007-04-13 05:38:56 +00:00
parent 1225da150c
commit c3b4d21628
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#include "display.hpp"
#include "global.hpp"
#define UNIT_FRAME_H_PART2
#include "unit_frame.hpp"
@ -136,6 +137,9 @@ return data_.empty() ||
template class progressive_<int>;
template class progressive_<double>;
#undef UNIT_FRAME_H_PART2
#include "unit_frame.hpp"
unit_frame::unit_frame() :
image_(), image_diagonal_(),halo_(), sound_(),
halo_x_(), halo_y_(), duration_(0),

View File

@ -48,6 +48,10 @@ public:
typedef progressive_<int> progressive_int;
typedef progressive_<double> progressive_double;
#endif
#ifndef UNIT_FRAME_H_PART2
#define UNIT_FRAME_H_PART2
//a class to describe a unit's animation sequence
class unit_frame {
public: