Project

General

Profile

Revision 350

increased precision

View differences:

proj_func.c
275 275

  
276 276
    ret->host_x               = (int16_t)gunner_get_x          (host);
277 277
    ret->host_y               = (int16_t)gunner_get_y          (host);
278
    ret->host_angle           = (int16_t)gunner_get_angle      (host);
278
    ret->host_angle           = (float)  gunner_get_angle      (host);
279 279
    ret->host_health          = (int16_t)gunner_get_health     (host);
280 280
    ret->host_current_health  = (int16_t)gunner_get_curr_health(host);
281 281

  
282 282
    // remote
283 283
    ret->remote_x               = (int16_t)gunner_get_x          (remote);
284 284
    ret->remote_y               = (int16_t)gunner_get_y          (remote);
285
    ret->remote_angle           = (int16_t)gunner_get_angle      (remote);
285
    ret->remote_angle           = (float)  gunner_get_angle      (remote);
286 286
    ret->remote_health          = (int16_t)gunner_get_health     (remote);
287 287
    ret->remote_current_health  = (int16_t)gunner_get_curr_health(remote);
288 288

  
......
338 338
    // host
339 339
    p->host_x               = (int16_t)gunner_get_x          (host);
340 340
    p->host_y               = (int16_t)gunner_get_y          (host);
341
    p->host_angle           = (int16_t)gunner_get_angle      (host);
341
    p->host_angle           = (float)  gunner_get_angle      (host);
342 342
    p->host_health          = (int16_t)gunner_get_health     (host);
343 343
    p->host_current_health  = (int16_t)gunner_get_curr_health(host);
344 344

  
345 345
    // remote
346 346
    p->remote_x               = (int16_t)gunner_get_x          (remote);
347 347
    p->remote_y               = (int16_t)gunner_get_y          (remote);
348
    p->remote_angle           = (int16_t)gunner_get_angle      (remote);
348
    p->remote_angle           = (float)  gunner_get_angle      (remote);
349 349
    p->remote_health          = (int16_t)gunner_get_health     (remote);
350 350
    p->remote_current_health  = (int16_t)gunner_get_curr_health(remote);
351 351
    /*

Also available in: Unified diff