Fix a very stupid bug.

This commit is contained in:
bʰedoh₂ swé 2024-04-03 16:25:02 +05:00
parent 0c9c6ba310
commit fc721addfc

View File

@ -41,7 +41,7 @@ def draw(level,gPlayer,fov,res):
irot = exp(fov/res*I) irot = exp(fov/res*I)
for i in range(res): for i in range(res):
m = DrawnSegment(0,BLACK) m = DrawnSegment(0,BLACK)
rot = irot * gPlayer.cRot**(i-(res/2)) rot = irot**(i-(res/2)) * gPlayer.cRot
for j in level: for j in level:
tA = Poincare2Klein(MobiusAdd(j.pointA,-gPlayer.cPos)) tA = Poincare2Klein(MobiusAdd(j.pointA,-gPlayer.cPos))
tB = Poincare2Klein(MobiusAdd(j.pointB,-gPlayer.cPos)) tB = Poincare2Klein(MobiusAdd(j.pointB,-gPlayer.cPos))