What idiot mistake(s) have I made;
Have quite a few if statements activated by a larger one. IF statements are all based of char's stored in an array. Char's like 'b' & 'o' work no problems but the special chars like '-' and '|' seem to be skipped despite visibly meeting the criteria.
Assume I've not correctly specified the special chars correctly within the IF statements. No compiler errors.
In summary this and others like it work no problems;
if (source[*posX][*posY] == 'b') {
}
But this one will not?
if (source[*posX][*posY] == '-') {
}
Nor does;
if (source[*posX][*posY] == '|') {
}
Tried a few formatting experiments but no luck. What have forgot?
Aucun commentaire:
Enregistrer un commentaire