make copying not abortable
This commit is contained in:
parent
f78b69b6f0
commit
35337651a0
1 changed files with 14 additions and 10 deletions
|
@ -50,6 +50,9 @@ instance ObjectAction ObjType ObjState where
|
|||
|
||||
objectTransition ObjCopier "copying" _ ent = do
|
||||
[e] <- efor (anEnt ent) $ do
|
||||
ttl <- query objStateTime
|
||||
if ttl < 0
|
||||
then do
|
||||
let nstat = AnimState
|
||||
(AnimId "copier" "open" N)
|
||||
0
|
||||
|
@ -60,6 +63,7 @@ instance ObjectAction ObjType ObjState where
|
|||
, objStateTime = Unset
|
||||
, objPlayerActivated = Unset
|
||||
}
|
||||
else return unchanged
|
||||
return e
|
||||
|
||||
objectTransition _ _ _ _ = return unchanged
|
||||
|
|
Loading…
Reference in a new issue