From: Kimmo R. <ki...@us...> - 2009-03-13 14:28:55
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/mapstuff/portal In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv22604/src/games/stendhal/server/entity/mapstuff/portal Modified Files: HousePortal.java Log Message: tag the keys with the house owners name when they are used Index: HousePortal.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/mapstuff/portal/HousePortal.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** HousePortal.java 13 Mar 2009 09:38:36 -0000 1.7 --- HousePortal.java 13 Mar 2009 14:28:39 -0000 1.8 *************** *** 147,150 **** --- 147,156 ---- final HouseKey key = (HouseKey) object; if (key.matches(getDoorId(), getLockNumber())) { + // TODO: Remove the key naming support, and just return. + // The renaming code does not need to be here forever, just some + // months, so that most of the player's keys get tagged with + // an owner. Comment added 2009-03-13 + key.setup(getDoorId(), getLockNumber(), getOwner()); + return true; } |