diff --git a/pandatool/src/egg-palettize/Sources.pp b/pandatool/src/egg-palettize/Sources.pp index ee019be043..5faa456f3d 100644 --- a/pandatool/src/egg-palettize/Sources.pp +++ b/pandatool/src/egg-palettize/Sources.pp @@ -3,7 +3,7 @@ #define LOCAL_LIBS \ eggbase progbase #define OTHER_LIBS \ - egg:c linmath:c putil:c express:c pnmimagetypes:c \ + egg:c linmath:c putil:c express:c pnmimage:c pnmimagetypes:c \ pandaegg:m panda:m pandaexpress:m \ dtoolutil:c dconfig:c dtool:m pystub diff --git a/pandatool/src/egg-palettize/attribFile.cxx b/pandatool/src/egg-palettize/attribFile.cxx index d3dc1f8ec6..a972568ab6 100644 --- a/pandatool/src/egg-palettize/attribFile.cxx +++ b/pandatool/src/egg-palettize/attribFile.cxx @@ -907,8 +907,8 @@ parse_params(const vector &words, istream &infile, bool AttribFile:: parse_packing(const vector &words, istream &infile, string &line, int &line_num) { - if (words.size() != 3 || words[1] != "is" || - (words[2] != "optimal" && words[2] != "suboptimal")) { + if (!(words.size() == 3 && words[1] == "is" && + (words[2] == "optimal" || words[2] == "suboptimal"))) { nout << "Expected 'packing is {optimal|suboptimal}'\n"; return false; } @@ -1073,7 +1073,7 @@ parse_palette(const vector &words, istream &infile, } string filename = words[1]; - if (words[2] != "size") { + if (!(words[2] == "size")) { nout << "Expected keyword 'size'\n"; return false; } @@ -1096,21 +1096,21 @@ parse_palette(const vector &words, istream &infile, Texture *texture = get_texture(twords[0]); - if (twords[1] != "at") { + if (!(twords[1] == "at")) { nout << "Expected keyword 'at'\n"; return false; } int left = atoi(twords[2].c_str()); int top = atoi(twords[3].c_str()); - if (twords[4] != "size") { + if (!(twords[4] == "size")) { nout << "Expected keyword 'size'\n"; return false; } int xsize = atoi(twords[5].c_str()); int ysize = atoi(twords[6].c_str()); - if (twords[7] != "margin") { + if (!(twords[7] == "margin")) { nout << "Expected keyword 'margin'\n"; return false; } @@ -1138,7 +1138,7 @@ parse_unplaced(const vector &words, istream &infile, Texture *texture = get_texture(words[1]); - if (words[2] != "because") { + if (!(words[2] == "because")) { nout << "Expected keyword 'because'\n"; return false; }