misc/coverity_model.c
author Wuzzy <Wuzzy2@mail.ru>
Wed, 11 Jul 2018 18:13:52 +0200
changeset 13477 d3209e0caf12
parent 10498 bcd1d7ad2f3e
permissions -rw-r--r--
Fix aihDoesntMatter still being attacked with air attack The calculation in TestBazooka created a sum of numbers which might have been BadTurn, a huge negative number, thus creating an overflow.

void fpcrtl_halt(int num) {
    __coverity_panic__();
}

int fpcrtl_abs(int num) {
    return num >= 0 ? num : -num;
}