projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b8c8e7b
)
fixed wrong position of global animations in 'door_2' in level editor
author
Holger Schemel
<info@artsoft.org>
Sat, 16 Mar 2019 20:50:49 +0000
(21:50 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 16 Mar 2019 20:50:49 +0000
(21:50 +0100)
src/anim.c
patch
|
blob
|
history
diff --git
a/src/anim.c
b/src/anim.c
index b79959dfcbf8fc58215d68090a070ba270cd591c..824f86b5a159e441fc90c03112b0e45cc36cae0c 100644
(file)
--- 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"))
{
}
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"
{
}
else // default: "playfield"
{