mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-14 00:13:46 +00:00
# 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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user