mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 20:50:58 +00:00
Move copying of the nodes signature out of the else case
This commit is contained in:
parent
0aed60f4de
commit
9d009edfc8
1 changed files with 4 additions and 4 deletions
|
@ -1509,12 +1509,12 @@ static nodetype_t P_GetNodetype(const virtres_t *virt, virtlump_t *virtnodes)
|
|||
virtnodes = vres_Find(virt, "NODES");
|
||||
supported[NT_XNOD] = supported[NT_ZNOD] = true;
|
||||
}
|
||||
|
||||
M_Memcpy(signature, virtnodes->data, 4);
|
||||
signature[4] = '\0';
|
||||
virtnodes->data += 4;
|
||||
}
|
||||
|
||||
M_Memcpy(signature, virtnodes->data, 4);
|
||||
signature[4] = '\0';
|
||||
virtnodes->data += 4;
|
||||
|
||||
if (!strcmp(signature, "XNOD"))
|
||||
nodetype = NT_XNOD;
|
||||
else if (!strcmp(signature, "ZNOD"))
|
||||
|
|
Loading…
Reference in a new issue