# Updates to techs.

- Added name and player JS properties for use in scripts.
- Remoed IsJSFirst since it doesn't make much sense for techs that also
apply to newly created units.

This was SVN commit r4154.
This commit is contained in:
Matei
2006-07-20 22:43:06 +00:00
parent 278d52bc2b
commit 2f68e8d547
3 changed files with 18 additions and 26 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ CTechnology* CTechnologyCollection::getTechnology( const CStrW& name, CPlayer* p
CStr path( filename_it->second );
//Try to load to the tech
CTechnology* newTemplate = new CTechnology( player );
CTechnology* newTemplate = new CTechnology( name, player );
if( !newTemplate->loadXML( path ) )
{
LOG(ERROR, LOG_CATEGORY, "CTechnologyCollection::getTechnology(): Couldn't load tech \"%s\"", path.c_str());