ddnet/src/tools
Robert Müller 39749a3ff8 Fix optional arguments of map_create_pixelart tool
According to cppcheck's `knownConditionTrueFalse` error:

```
src\tools\map_create_pixelart.cpp:58:24: style: Condition 'argc>=10' is always true [knownConditionTrueFalse]
 aArtOptions[0] = argc >= 10 ? str_toint(argv[10]) : true; //optimize
                       ^
src\tools\map_create_pixelart.cpp:34:10: note: Assuming that condition 'argc<11' is not redundant
 if(argc < 11 || argc > 12)
         ^
src\tools\map_create_pixelart.cpp:58:24: note: Condition 'argc>=10' is always true
 aArtOptions[0] = argc >= 10 ? str_toint(argv[10]) : true; //optimize
                       ^
src\tools\map_create_pixelart.cpp:59:24: style: Condition 'argc>=11' is always true [knownConditionTrueFalse]
 aArtOptions[1] = argc >= 11 ? str_toint(argv[11]) : false; //centralize
                       ^
src\tools\map_create_pixelart.cpp:34:10: note: Assuming condition 'argc<11' is false
 if(argc < 11 || argc > 12)
         ^
src\tools\map_create_pixelart.cpp:59:24: note: Condition 'argc>=11' is always true
 aArtOptions[1] = argc >= 11 ? str_toint(argv[11]) : false; //centralize
                       ^
```
2022-11-29 23:32:26 +01:00
..
config_common.h Remove namespace tw 2022-06-13 18:07:29 +02:00
config_retrieve.cpp Move/rename variable declarations in config_retrieve 2022-06-04 17:21:26 +02:00
config_store.cpp Move/rename variable declarations in config_store 2022-06-04 17:21:26 +02:00
crapnet.cpp Remove redundant variable assignments 2022-11-29 23:32:26 +01:00
dilate.cpp Warn about pnglite-incompatible PNGs on load 2022-07-14 18:22:46 +02:00
dummy_map.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00
map_convert_07.cpp Warn about pnglite-incompatible PNGs on load 2022-07-14 18:22:46 +02:00
map_create_pixelart.cpp Fix optional arguments of map_create_pixelart tool 2022-11-29 23:32:26 +01:00
map_diff.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00
map_extract.cpp Move PNG handling to src/engine/gfx 2022-06-21 15:26:23 +02:00
map_find_env.cpp Use str_copy instead of snprintf to copy strings 2022-10-20 20:56:58 +02:00
map_optimize.cpp Refactor usages of sha256_str 2022-10-15 18:06:45 +02:00
map_replace_area.cpp Pass parameters by const reference instead of value when possible 2022-11-29 23:32:25 +01:00
map_replace_image.cpp Warn about pnglite-incompatible PNGs on load 2022-07-14 18:22:46 +02:00
map_resave.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00
packetgen.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00
stun.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00
twping.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
unicode_confusables.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00
uuid.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00