'From Squeak3.1alpha of 5 February 2001 [latest update: #4332] on 12 September 2001 at 8:58:47 pm'! "Change Set: MoLessGribblies Date: 12 September 2001 Author: Dan Ingalls Adds the same protection to Player setX: and setY: so that ticking while in the hand won't foul up the damage regions and cause... thum-thum... thum-thum... Grribblies. "! !Player methodsFor: 'slot getters/setters' stamp: 'di 9/12/2001 20:49'! setX: val "Set the x coordinate as indicated" | aCostume | (aCostume _ self costume) isInWorld ifFalse: [^ self]. aCostume isWorldOrHandMorph ifTrue: [^ self]. aCostume owner isHandMorph ifTrue: [^ self]. ^ aCostume x: val! ! !Player methodsFor: 'slot getters/setters' stamp: 'di 9/12/2001 20:51'! setY: val "Set the y coordinate as indicated" | aCostume | (aCostume _ self costume) isInWorld ifFalse: [^ self]. aCostume isWorldOrHandMorph ifTrue: [^ self]. aCostume owner isHandMorph ifTrue: [^ self]. ^ aCostume y: val! !