remove leftover debug logging
This commit is contained in:
parent
9480d4e2a7
commit
e19a13c354
@ -1337,8 +1337,6 @@ void change_map_tile(V2 pos, TileKind kind) {
|
|||||||
if (pos_x < 0 || pos_y < 0 || pos_x > current_map.width - 1 || pos_y > current_map.height - 1)
|
if (pos_x < 0 || pos_y < 0 || pos_x > current_map.width - 1 || pos_y > current_map.height - 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SDL_Log("TileKind Change: %d %d", pos_x, pos_y);
|
|
||||||
|
|
||||||
__m128i corner_infos = _mm_setr_epi32(get_corner_info(pos_x, pos_y + 1), get_corner_info(pos_x + 1, pos_y + 1), get_corner_info(pos_x + 1, pos_y), get_corner_info(pos_x, pos_y));
|
__m128i corner_infos = _mm_setr_epi32(get_corner_info(pos_x, pos_y + 1), get_corner_info(pos_x + 1, pos_y + 1), get_corner_info(pos_x + 1, pos_y), get_corner_info(pos_x, pos_y));
|
||||||
__m128i none_mask = _mm_cmpeq_epi8(corner_infos, _mm_set1_epi8(TILEKIND_NONE));
|
__m128i none_mask = _mm_cmpeq_epi8(corner_infos, _mm_set1_epi8(TILEKIND_NONE));
|
||||||
__m128i error_mask = _mm_cmpeq_epi8(corner_infos, _mm_set1_epi8(TILEKIND_ERROR));
|
__m128i error_mask = _mm_cmpeq_epi8(corner_infos, _mm_set1_epi8(TILEKIND_ERROR));
|
||||||
@ -1902,7 +1900,6 @@ int main(int argc, char **argv) {
|
|||||||
case SDL_EVENT_MOUSE_MOTION: {
|
case SDL_EVENT_MOUSE_MOTION: {
|
||||||
mouse_pos = V2_(event.motion.x, event.motion.y);
|
mouse_pos = V2_(event.motion.x, event.motion.y);
|
||||||
V2 floor_intersection = get_floor_intersection_of_mouse(mouse_pos);
|
V2 floor_intersection = get_floor_intersection_of_mouse(mouse_pos);
|
||||||
SDL_Log("Move: %g %g", floor_intersection.x, floor_intersection.y);
|
|
||||||
|
|
||||||
if (selected_tile_kind != -1 && dragging_tile_change) {
|
if (selected_tile_kind != -1 && dragging_tile_change) {
|
||||||
V2 floor_intersection = get_floor_intersection_of_mouse(mouse_pos);
|
V2 floor_intersection = get_floor_intersection_of_mouse(mouse_pos);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user