• Welcome to Dark Bit Factory & Gravity.
 

3DDEMO Error in listing

Started by Wenlock, June 20, 2009

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Wenlock

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!

Jim

Cool!  Does this win a prize for the latest bug report?  O0

Jim
Challenge Trophies Won:

Shockwave

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:

Wenlock

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!