Does the game need this?
Posted: Thu Apr 10, 2014 3:31 pm
In MouseLook function:
It seems to be some code that resets the player's position if it's invalid, and displays a message. However, I haven't seen this message ingame. Removing the code doesn't seem to have any negative effect, so I'm not sure why Regalis added it.
Code: Select all
;If 0 Then
;fixing the black screen bug with some bubblegum code
Local Zero# = 0.0
Local Nan1# = 0.0 / Zero
If Int(EntityX(Collider))=Int(Nan1) Then
PositionEntity Collider, EntityX(Camera, True), EntityY(Camera, True) - 0.5, EntityZ(Camera, True), True
Msg = "EntityX(Collider) = NaN, RESETTING COORDINATES - New coordinates: "+EntityX(Collider)
MsgTimer = 300
EndIf
;EndIf