[Megameknet-cvs] MegaMekNET/src/common Unit.java,1.22,1.23
Status: Inactive
Brought to you by:
mcwizard
From: Immanuel S. <im...@us...> - 2005-02-22 20:18:55
|
Update of /cvsroot/megameknet/MegaMekNET/src/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6360/src/common Modified Files: Unit.java Log Message: loadMech fix again Index: Unit.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/common/Unit.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Unit.java 20 Feb 2005 23:13:13 -0000 1.22 --- Unit.java 22 Feb 2005 20:18:22 -0000 1.23 *************** *** 314,318 **** if (zEntry.getName().toLowerCase().endsWith(".txt")) continue; ! if (zEntry.getName().endsWith(fileName)) { mechLocation.put(zEntry.getName(), zips[i]); mech = new MechFileParser(zips[i], zEntry.getName()).getEntity(); --- 314,320 ---- if (zEntry.getName().toLowerCase().endsWith(".txt")) continue; ! if (zEntry.getName().equals(fileName) || ! zEntry.getName().endsWith('/'+fileName) || ! zEntry.getName().endsWith('\\'+fileName)) { mechLocation.put(zEntry.getName(), zips[i]); mech = new MechFileParser(zips[i], zEntry.getName()).getEntity(); |