Skip to content

Commit

Permalink
Restore debug code in level.pasteWithWraparound()
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnovak committed Mar 16, 2024
1 parent 92fbf32 commit c3d2da3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/level.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import std/math
import std/options
#import std/strformat

import annotations
import common
Expand Down Expand Up @@ -391,6 +392,14 @@ proc pasteWithWraparound*(l; destRow, destCol: int, srcLevel: Level,
# The 'dest' params are for working with the "oversized" paste preview
# buffers.

# echo "---------------------------------"
# echo fmt"destLevel: {l.rows} x {l.cols}, destRow: {destRow}, destCol: {destCol}"
# echo fmt"srcLevel: {srcLevel.rows} x {srcLevel.cols}, selection: {sel.rows} x {sel.cols}"
# echo fmt"levelRows: {levelRows}, levelCols: {levelCols}"
# echo fmt"selStartRow: {selStartRow}, selStartCol: {selStartCol}"
# echo fmt"destStartRow: {destStartRow}, destStartCol: {destStartCol}"
# echo fmt"destRowOffset: {destRowOffset}, destColOffset: {destColOffset}"

for srcRow in 0..<srcLevel.rows:
for srcCol in 0..<srcLevel.cols:
if sel[srcRow, srcCol]:
Expand Down

0 comments on commit c3d2da3

Please sign in to comment.