Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (j = 0; j < NUM_OBJ_VAL_POSITIONS; j++)
- t[j] = 0;
- if ((retval = sscanf(line, "%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d", t, t + 1, t + 2, t + 3, t + 4, t + 5, t + 6, t + 7, t + 8, t + 9, t + 10, t + 11, t + 12, t + 13, t + 14, t + 15)) > NUM_OBJ_VAL_POSITIONS) {
- log("SYSERR: Format error in second numeric line (expecting <=%d args, got %d), %s", NUM_OBJ_VAL_POSITIONS, retval, buf2);
- exit(1);
- }
- for (j = 0; j < NUM_OBJ_VAL_POSITIONS; j++)
- GET_OBJ_VAL(obj_proto + i, j) = t[j];
- if (!get_line(obj_f, line)) {
- log("SYSERR: Expecting third numeric line of %s, but file ended!", buf2);
- exit(1);
- }
- if ((retval = sscanf(line, "%d %d %d %d %d", t, t + 1, t + 2, t + 3, t + 4)) != 5) {
- if (retval == 3) {
- t[3] = 0;
- t[4] = 0;
- } else if (retval == 4)
- t[4] = 0;
- else {
- log("SYSERR: Format error in third numeric line (expecting 5 args, got %d), %s", retval, buf2);
- exit(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment