[Scummvm-cvs-logs] SF.net SVN: scummvm: [26753] scummvm/trunk/engines/agi/op_cmd.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sat May 5 18:10:13 CEST 2007
Revision: 26753
http://scummvm.svn.sourceforge.net/scummvm/?rev=26753&view=rev
Author: thebluegr
Date: 2007-05-05 09:10:12 -0700 (Sat, 05 May 2007)
Log Message:
-----------
Fix bug #1712585
Modified Paths:
--------------
scummvm/trunk/engines/agi/op_cmd.cpp
Modified: scummvm/trunk/engines/agi/op_cmd.cpp
===================================================================
--- scummvm/trunk/engines/agi/op_cmd.cpp 2007-05-05 16:07:37 UTC (rev 26752)
+++ scummvm/trunk/engines/agi/op_cmd.cpp 2007-05-05 16:10:12 UTC (rev 26753)
@@ -238,6 +238,24 @@
cmd(set_priority) {
vt.flags |= FIXED_PRIORITY;
vt.priority = p1;
+
+ // WORKAROUND: this fixes bug #1712585 in KQ4 (dwarf sprite priority)
+ // For this scene, ego (Rosella) hasn't got a fixed priority till script 54
+ // explicitly sets priority 8 for her, so that she can walk back to the table
+ // without being drawn over the other dwarfs
+ // It seems that in this scene, ego's priority is set to 8, but the priority of
+ // the last dwarf with the soup bowls (view 152) is also set to 8, which causes
+ // the dwarf to be drawn behind ego
+ // With this workaround, when the game scripts set the priority of view 152
+ // (seventh dwarf with soup bowls), ego's priority is set to 7
+ // The game script itself sets priotity 8 for ego before she starts walking,
+ // and then releases the fixed priority set on ego after ego is seated
+ // Therefore, this workaround only affects that specific part of this scene
+ // Ego is set to object 19 by script 54
+ if (g_agi->getFeatures() & GF_KQ4 && vt.currentView == 152) {
+ game.viewTable[19].flags |= FIXED_PRIORITY;
+ game.viewTable[19].priority = 7;
+ }
}
cmd(set_priority_f) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list