Mirage Source
Item Type Key - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: Item Type Key (/showthread.php?tid=837)



Item Type Key - William - 19-03-2007

Introduction
The bug is only when facing east (DIR_RIGHT), it just has a constant wrong.

Server Side
Find:
Code:
Case DIR_RIGHT
   If GetPlayerX(Index) < MAX_MAPY Then
      x = GetPlayerX(Index) + 1
      y = GetPlayerY(Index)
   Else
      Exit Sub
   End If
End Select
Replace it with:
Code:
Case DIR_RIGHT
   If GetPlayerX(Index) < MAX_MAPX Then
      x = GetPlayerX(Index) + 1
      y = GetPlayerY(Index)
   Else
      Exit Sub
   End If
End Select
All that was changed was MAX_MAPY to MAX_MAPX.