Slight change to some STL stuff that was breaking MSVC6
This commit is contained in:
parent
7c3df373af
commit
9c96e109a3
2 changed files with 7 additions and 4 deletions
src/ATC
|
@ -96,6 +96,9 @@ bool FGATCVoice::LoadVoice(string voice) {
|
|||
}
|
||||
|
||||
|
||||
typedef list < string > tokenList_type;
|
||||
typedef tokenList_type::iterator tokenList_iterator;
|
||||
|
||||
// Given a desired message, return a pointer to the data buffer and write the buffer length into len.
|
||||
unsigned char* FGATCVoice::WriteMessage(char* message, int& len, bool& dataOK) {
|
||||
|
||||
|
@ -103,8 +106,8 @@ unsigned char* FGATCVoice::WriteMessage(char* message, int& len, bool& dataOK) {
|
|||
// First - parse the message into a list of tokens.
|
||||
// Sort the tokens into those we understand and those we don't.
|
||||
// Add all the raw lengths of the token sound data, allocate enough space, and fill it with the rqd data.
|
||||
list < string > tokenList;
|
||||
list < string >::iterator tokenListItr;
|
||||
tokenList_type tokenList;
|
||||
tokenList_iterator tokenListItr;
|
||||
|
||||
// TODO - at the moment we're effectively taking 3 passes through the data.
|
||||
// There is no need for this - 2 should be sufficient - we can probably ditch the tokenList.
|
||||
|
|
|
@ -67,8 +67,8 @@ class TowerPlaneRec {
|
|||
};
|
||||
|
||||
typedef list < TowerPlaneRec* > tower_plane_rec_list_type;
|
||||
typedef list < TowerPlaneRec* >::iterator tower_plane_rec_list_iterator;
|
||||
typedef list < TowerPlaneRec* >::const_iterator tower_plane_rec_list_const_iterator;
|
||||
typedef tower_plane_rec_list_type::iterator tower_plane_rec_list_iterator;
|
||||
typedef tower_plane_rec_list_type::const_iterator tower_plane_rec_list_const_iterator;
|
||||
|
||||
|
||||
class FGTower : public FGATC {
|
||||
|
|
Loading…
Add table
Reference in a new issue