Update copyright for 2013.
Check for return values when opening the config file.
BuildingExt maintenance
BuildingTypeExt maintenance

sscanf takes pointers to int, not to short.
HouseExt maintenance
InfantryExt, RulesExt, SWTypeEx and SideExt maintenance
TechnoExt maintenance

Fixed debug code, which would not work if WeaponX isn't set and EliteWeaponX has no warhead.
TechnoTypeExt maintenance
WarheadTypeExt maintenance
WeaponTypeExt maintenance
Misc maintenance
Check for null pointer when updating SW state machines.
Added a cast.
Converted if(constant) to preprocessor directive.