X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fanim.c;h=824f86b5a159e441fc90c03112b0e45cc36cae0c;hb=9554663af137518e17db7ef1c405ee13aa9486e7;hp=b79959dfcbf8fc58215d68090a070ba270cd591c;hpb=b8c8e7bc29ef6a79d7c71d8a785bf1b77e44fc0a;p=rocksndiamonds.git diff --git a/src/anim.c b/src/anim.c index b79959df..824f86b5 100644 --- a/src/anim.c +++ b/src/anim.c @@ -854,10 +854,20 @@ static boolean SetGlobalAnimPart_Viewport(struct GlobalAnimPartControlInfo *part } else if (part->control_info.class == get_hash_from_key("door_2")) { - viewport_x = VX; - viewport_y = VY; - viewport_width = VXSIZE; - viewport_height = VYSIZE; + if (part->mode_nr == GAME_MODE_EDITOR) + { + viewport_x = EX; + viewport_y = EY; + viewport_width = EXSIZE; + viewport_height = EYSIZE; + } + else + { + viewport_x = VX; + viewport_y = VY; + viewport_width = VXSIZE; + viewport_height = VYSIZE; + } } else // default: "playfield" {