Guest User

Untitled

a guest
Jan 16th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. float randValue = Utils::Random::frandom(0.0f, 100.0f);
  2.     std::string key = "";
  3.     for (auto it = drops.begin(); it != drops.end(); ++it) {
  4.         if ((*it)->barrier >= randValue) {
  5.             key = (*it)->key;
  6.             break;
  7.         }
  8.     }
  9.     return createDrop(key, x, y);
Advertisement
Add Comment
Please, Sign In to add comment