From: <js...@us...> - 2004-07-04 08:24:34
|
Update of /cvsroot/exult/exult/gumps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10587/gumps Modified Files: Gump.cc Log Message: Save/restore item positions within containers Index: Gump.cc =================================================================== RCS file: /cvsroot/exult/exult/gumps/Gump.cc,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- Gump.cc 26 Jun 2004 23:00:54 -0000 1.36 +++ Gump.cc 4 Jul 2004 08:24:25 -0000 1.37 @@ -215,7 +215,7 @@ /* * Add an object. If mx, my, sx, sy are all -1, the object's position * is calculated by 'paint()'. If they're all -2, it's assumed that - * obj->cx, obj->cy are already correct. + * obj->tx, obj->ty are already correct. * * Output: 0 if cannot add it. */ @@ -246,7 +246,7 @@ if (sx == -1 && sy == -1 && mx == -1 && my == -1) // Let paint() set spot. obj->set_shape_pos(255, 255); - // -2's mean cx, cy are already set. + // -2's mean tx, ty are already set. else if (sx != -2 && sy != -2 && mx != -2 && my != -2) { // Put it where desired. sx -= x + object_area.x;// Get point rel. to object_area. |