• R/O
  • SSH

dwaddle: Commit

Main Dwaddle repository


Commit MetaInfo

Revision1f1237d9986f595a775ebb0d8028a2fb55ccfed5 (tree)
Time2021-11-07 19:23:52
AuthorRemilia Scarlet <remilia@post...>
CommiterRemilia Scarlet

Log Message

Back sidedef could be negative

Change Summary

Incremental Difference

diff -r b5c77fa969b7 -r 1f1237d9986f src/level-data/level.cr
--- a/src/level-data/level.cr Sat Jun 19 03:49:33 2021 -0600
+++ b/src/level-data/level.cr Sun Nov 07 03:23:52 2021 -0700
@@ -126,7 +126,7 @@
126126 @comment = line.comment
127127
128128 if line.arg0Str.empty?
129- [line.arg0, line.arg1, line.arg2, line.arg3, line.arg4].each { |x| @args << x }
129+ {line.arg0, line.arg1, line.arg2, line.arg3, line.arg4}.each { |x| @args << x }
130130 else
131131 @args = [line.arg0Str, line.arg1, line.arg2, line.arg3, line.arg4]
132132 end
@@ -152,7 +152,7 @@
152152 raise DwaddleError.new("Cannot assign a sidedef to a Linedef: old index out of range")
153153 end
154154
155- @backSidedef = if line.backSidedef != 0
155+ @backSidedef = if line.backSidedef > 0
156156 if line.backSidedef < sidedefs.size
157157 sidedefs[line.backSidedef]
158158 else
Show on old repository browser