Advertisement
Guest User

Untitled

a guest
Nov 5th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. else if(type == "background")
  2. {
  3. v2s32 pos = basepos;
  4. pos.X += stof(f.next(",")) * (float)spacing.X;
  5. pos.Y += stof(f.next(";")) * (float)spacing.Y;
  6. v2s32 geom;
  7. geom.X = stof(f.next(",")) * (float)spacing.X;
  8. geom.Y = stof(f.next(";")) * (float)spacing.Y;
  9. std::string name = f.next("]");
  10. infostream<<"image name="<<name
  11. <<", pos=("<<pos.X<<","<<pos.Y<<")"
  12. <<", geom=("<<geom.X<<","<<geom.Y<<")"
  13. <<std::endl;
  14. if(bp_set != 2)
  15. errorstream<<"WARNING: invalid use of background without a size[] element"<<std::endl;
  16. m_images.push_back(ImageDrawSpec(name, pos, geom));
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement