| 199 | } |
| 200 | |
| 201 | void BuildNewBaseState::hoverRedraw(void) |
| 202 | { |
| 203 | double lon, lat; |
| 204 | _globe->cartToPolar(_mousex, _mousey, &lon, &lat); |
| 205 | if (lon == lon && lat == lat) |
| 206 | { |
| 207 | _globe->setNewBaseHoverPos(lon,lat); |
| 208 | _globe->setNewBaseHover(); |
| 209 | } |
| 210 | if (Options::globeRadarLines && !(AreSame(_oldlat, lat) && AreSame(_oldlon, lon)) ) |
| 211 | { |
| 212 | _oldlat=lat; |
| 213 | _oldlon=lon; |
| 214 | _globe->invalidate(); |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | /** |
| 219 | * Processes any left-clicks for base placement, |
nothing calls this directly
no test coverage detected