this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix changing tile in map editor changes tool + not needing to hold shift to show sprites (#2631)

authored by

Miguel and committed by
GitHub
d2a395dc 31efa67e

+12 -6
+12 -6
src/studio/editors/map.c
··· 1214 1214 } 1215 1215 } 1216 1216 1217 + static inline bool keyWasPressedOnce(Map* map, s32 key) 1218 + { 1219 + tic_mem* tic = map->tic; 1220 + 1221 + return tic_api_keyp(tic, key, -1, -1); 1222 + } 1223 + 1224 + // tic_api_key(tic, 1225 + 1217 1226 static void processKeyboard(Map* map) 1218 1227 { 1219 1228 tic_mem* tic = map->tic; 1220 1229 1221 1230 if(isIdle(map)) 1222 1231 { 1223 - if(tic_api_key(tic, tic_key_shift)) 1232 + if(!sheetVisible(map) && keyWasPressedOnce(map, tic_key_shift)) 1224 1233 { 1225 - if(!sheetVisible(map)) 1226 - { 1227 1234 map->anim.movie = resetMovie(&map->anim.show); 1228 - map->sheet.keep = false; 1229 - } 1235 + map->sheet.keep = true; 1230 1236 } 1231 1237 else 1232 1238 { 1233 - if(!map->sheet.keep && sheetVisible(map)) 1239 + if(map->sheet.keep && sheetVisible(map) && keyWasPressedOnce(map, tic_key_shift)) 1234 1240 map->anim.movie = resetMovie(&map->anim.hide); 1235 1241 } 1236 1242 }