static PComputeStatus compute_div(PPInput *input, PPOutput output, void *state) { PINode *a, *b; real64 c, d; if(collect_inputs(input, &a, &b, &c, &d, V_NT_BITMAP)) return bitmap_div(a, b, c, d, output); else if(collect_inputs(input, &a, &b, &c, &d, INPUT_OBJECT_WITH_GEOMETRY)) return geometry_div(a, b, c, d, output); else p_output_real64(output, c / d); return P_COMPUTE_DONE; }
void server::tick() { // if (file_server) // file_server->service_request(); next_out.reset(); // clear the next packet out.. check_for_new_players(); collect_inputs(); }