Added include guards to all class headers.

Removed unnecessary or potentially harmful compiler flags. 
Added alignment attribute to all old struct members. 
Removed some unused variables. 
Made some switch statements handle all or more cases. 
Removed using declarations in favor of fully qualified names. 
Fixed a couple of assignments in conditionals that should have been comparisons. 
Eliminated linker warnings by restoring default linking of standard libraries. 
Fixed some comparisons between signed and unsigned integers. 

Note: No testing has been done, in particular of old file I/O. This should be checked for regression caused by alteration of old struct definitions. 


git-svn-id: http://openexile.googlecode.com/svn/trunk@63 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
Niemand
2009-05-22 03:01:05 +00:00
parent 8ddf7eccc6
commit f198b4899d
57 changed files with 691 additions and 580 deletions

View File

@@ -6,6 +6,11 @@
*
*/
#ifndef REGTOWN_H
#define REGTOWN_H
#include <iostream>
namespace legacy {
struct big_tr_type;
struct ave_tr_type;
@@ -28,7 +33,7 @@ public:
short max_monst();
cBigTown();
void writeTo(ostream& file);
void writeTo(std::ostream& file);
};
class cMedTown : public cTown { // formerly ave_tr_type
@@ -47,7 +52,7 @@ public:
short max_monst();
cMedTown();
void writeTo(ostream& file);
void writeTo(std::ostream& file);
};
class cTinyTown : public cTown { // formerly tiny_tr_type
@@ -66,5 +71,7 @@ public:
short max_monst();
cTinyTown();
void writeTo(ostream& file);
void writeTo(std::ostream& file);
};
#endif