daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Nov 5th, 2012 17 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top