| 180 | } |
| 181 | |
| 182 | void PlayerLoop::newPage(const std::string& pagename, const HTTPRequest& request) { |
| 183 | UNUSED(pagename); |
| 184 | |
| 185 | playerID = -1; |
| 186 | std::string pID; |
| 187 | if (request.getParam("playerID", pID) && pID.size()) { |
| 188 | playerID = atoi(pID.c_str()); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | int PlayerLoop::getPlayerID(void) { |
| 193 | int id = playerID; |