rem: evt.preventDefault(); 
add: { evt.preventDefault(); return; } 
context: function entityEventPrepareOrder( evt ){	// This event gives us a chance to veto any order we're given before we execute it.	// Not sure whether this really belongs here like this: the alternative is to override it in	// subtypes - then you wouldn't need to check tags, you could hardcode results.	if ( !this.actions )	{		evt.preventDefault();		return;	}		//evt.notifySource is the entity order data will be obtained from, so if we're attacking and we 	//want our listeners to copy us, then we will use our own order as the source.	switch( evt.orderType )	{		case ORDER_GOTO:			if ( !this.actions.move )				evt.preventDefault();			evt.notifyType = NOTIFY_GOTO;			evt.notifySource = this;			break;					case ORDER_RUN:			if ( !this.actions.move.run )					evt.preventDefault();			evt.notifyType = NOTIFY_RUN;			evt.notifySource = this;			break;					case ORDER_PATROL:			if ( !this.actions.patrol )				evt.preventDefault();			break;						case ORDER_GENERIC:			evt.notifySource = this;			switch ( evt.action )			{				case ACTION_ATTACK:				case ACTION_ATTACK_RANGED:					evt.action = getAttackAction( this, evt.target );					if ( evt.action == ACTION_NONE )					 	evt.preventDefault();					evt.notifyType = NOTIFY_ATTACK;					break;				case ACTION_GATHER:					if ( !this.actions.gather )						evt.preventDefault();					evt.notifyType = NOTIFY_GATHER;					break;									case ACTION_HEAL:					if ( !this.actions.heal )						evt.preventDefault();					evt.notifyType = NOTIFY_HEAL;					break;										case ACTION_BUILD:					if ( !this.actions.build )						evt.preventDefault();					evt.notifyType = NOTIFY_NONE;					break;				}			break;				case ORDER_PRODUCE:			evt.notifyType = NOTIFY_NONE;			break;					default:			console.write("Unknown order type " + evt.orderType + "; ignoring.");			evt.preventDefault();			break;	}}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/44abeb1e64aeab1e344b826d055c435ee3ac14ab/template_entity_script.js/buggy/binaries/data/mods/official/entities/template_entity_script.js