remove quest number validation check
plus, it was written wrong anyway, heh. but, quest numbers can indeed be zero, so this was not a proper validation check anyway.
This commit is contained in:
parent
3e1027ec2c
commit
27b2956e0e
5
quests.c
5
quests.c
|
@ -63,11 +63,6 @@ int validate_quest_bin(const QUEST_BIN_HEADER *header, uint32_t length, bool pri
|
|||
printf("Quest bin file issue: blank quest name\n");
|
||||
result |= QUESTBIN_ERROR_NAME;
|
||||
}
|
||||
if (header->quest_number_word == 0) {
|
||||
if (print_errors)
|
||||
printf("Quest bin file issue: quest_number is zero\n");
|
||||
result |= QUESTBIN_ERROR_NAME;
|
||||
}
|
||||
if (header->episode > 1) {
|
||||
if (print_errors)
|
||||
printf("Quest bin file issue: unexpected episode value %d, quest was probably created using a 16-bit quest_number\n", header->episode);
|
||||
|
|
3
quests.h
3
quests.h
|
@ -11,8 +11,7 @@
|
|||
#define QUESTBIN_ERROR_LARGER_BIN_SIZE 2
|
||||
#define QUESTBIN_ERROR_SMALLER_BIN_SIZE 4
|
||||
#define QUESTBIN_ERROR_NAME 8
|
||||
#define QUESTBIN_ERROR_NUMBER 16
|
||||
#define QUESTBIN_ERROR_EPISODE 32
|
||||
#define QUESTBIN_ERROR_EPISODE 16
|
||||
|
||||
#define QUESTDAT_ERROR_TYPE 1
|
||||
#define QUESTDAT_ERROR_TABLE_BODY_SIZE 2
|
||||
|
|
Loading…
Reference in a new issue