[Super-tux-commit] supertux/lib/special sprite.cpp,1.17,1.18
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-08-21 11:47:20
|
Update of /cvsroot/super-tux/supertux/lib/special In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2958/lib/special Modified Files: sprite.cpp Log Message: Changed hotspot keyword by offset, as asked by Benjamin. Index: sprite.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/special/sprite.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- sprite.cpp 19 Aug 2004 11:00:53 -0000 1.17 +++ sprite.cpp 21 Aug 2004 11:47:07 -0000 1.18 @@ -39,6 +39,8 @@ name = lisp_string(data); else if(token == "action") parse_action(reader); + else + std::cerr << "Warning: Unknown sprite field: " << token << std::endl; } if(name.empty()) @@ -68,8 +70,8 @@ if(!lispreader.read_string("name", action->name)) if(!actions.empty()) Termination::abort("Error: If there are more than one action, they need names!", ""); - lispreader.read_int("x-hotspot", action->x_hotspot); - lispreader.read_int("y-hotspot", action->y_hotspot); + lispreader.read_int("x-offset", action->x_hotspot); + lispreader.read_int("y-offset", action->y_hotspot); lispreader.read_float("fps", action->fps); std::vector<std::string> images; |