User Tag List

Results 1 to 5 of 5

Thread: Random Behaviour from 'int onSaveMapPic()'

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,437
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.78%
    Hard to say, but I wouldn't be surprised. loadscr does a lot of stuff, and there's no telling what might result from changing out data while other parts of the program are using it.
    The easiest thing to do would be to increase the size of tmpscr by one and load to tmpscr[2] instead.

  2. #2
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,767
    Level
    21
    vBActivity - Bars
    Lv. Percent
    70.16%
    Quote Originally Posted by Saffith View Post
    Hard to say, but I wouldn't be surprised. loadscr does a lot of stuff, and there's no telling what might result from changing out data while other parts of the program are using it.
    The easiest thing to do would be to increase the size of tmpscr by one and load to tmpscr[2] instead.
    I ended up rewriting it based on ViewMap(), which seems to be good, although only time will tell if it still has some issues that I missed. Adding the third index and using that failed to properly update the screen on the map, and continually blitted one screen to every space that Link visited, but I did try it. In the end, I went with my what was my first thought...

    I believe that loadscr2() is safer, too, as it was designed to display maps and not do a number of other random things, as so...

    https://github.com/ArmageddonGames/Z...ea8f711ab407cb

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social