controls respect nopushenter

stable-5.2
Tobias Zwick 2009-10-12 11:04:52 +02:00
parent 3212d8ff8c
commit a859c9b108
1 changed files with 3 additions and 0 deletions

View File

@ -273,6 +273,9 @@ private func ObjectControlPush(int plr, int ctrl)
{
if (proc != "PUSH") return false;
// respect no push enter
if (GetActionTarget()->GetDefCoreVal("NoPushEnter","DefCore")) return false;
// a building with an entrance at right position is there?
var obj = GetActionTarget()->GetEntranceObject();
if (!obj) return false;