Author Topic: 3DDEMO Error in listing  (Read 3760 times)

0 Members and 1 Guest are viewing this topic.

Offline Wenlock

  • C= 64
  • **
  • Posts: 68
  • Karma: 4
  • BASIC & Testcards rule.
    • View Profile
3DDEMO Error in listing
« on: June 20, 2009 »
Hi Guys,

Tripped over an error in the listing of 3DDEMO:

    if (xand=0) then

     yplus=y+twotop

     ymind=y-twotop

     if (yplus>size) yplus=1

     if (ymins<1) ymins=size

     average=(array(x,yplus)+array(x,ymins))*0.5

     col=average+roughness*(ran()-0.5)

     goto nxt

The line "ymind=y-twotop" should read "ymins"

It does work with ymind, but looking at the rest of the code, it's pretty clear this should be ymins. 

Cheers,

Wenlock
YABASIC ROOLZ!

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: 3DDEMO Error in listing
« Reply #1 on: June 20, 2009 »
Cool!  Does this win a prize for the latest bug report?  O0

Jim
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: 3DDEMO Error in listing
« Reply #2 on: June 20, 2009 »
I think it's wonderful that Wenlock is learning enough to be able to spot these things now :) Maybe we'll see something new in Yabasic soon eh?
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Wenlock

  • C= 64
  • **
  • Posts: 68
  • Karma: 4
  • BASIC & Testcards rule.
    • View Profile
Re: 3DDEMO Error in listing
« Reply #3 on: June 21, 2009 »
LEARNING!   :boxer:

Spotting that was from all that experience with the Disk Extended Color BASIC in the 80's and 90's.   No wonder I'm so patient typing all these listings.

Now, I'll type Paracetamol soon, just got 1 to finish first.

After that, I think there's 1 or 2 demos then it's games if I want to keep typing.

Wenlock
YABASIC ROOLZ!