Pages: [1]
  Print  
Author Topic: Minor Bug: Repeated if Statement in scrHoldItem  (Read 5100 times)
DariusK
Bulb
*
Posts: 97



View Profile WWW
« on: January 20, 2010, 10:20:39 AM »

in scrHoldItem we see this:

Code:
    if (itemType == "Rock") holdItem = instance_create(x, y, oRock);
    else if (itemType == "Jar") holdItem = instance_create(x, y, oJar);
    else if (itemType == "Skull") holdItem = instance_create(x, y, oSkull);
    else if (itemType == "Fish Bone") holdItem = instance_create(x, y, oFishBone);
    else if (itemType == "Arrow") holdItem = instance_create(x, y, oArrow);
    else if (itemType == "Rock") holdItem = instance_create(x, y, oRock);

The code for Rock is in there twice, one of those should be taken away. This doesn't affect the game but it confounded me when I was modding the Rock's functionality, as I thought I'd taken it out of this statement but it was still there due to the duplicate!
Logged

marsgreekgod
Big Bossy
Mossy
*
Posts: 9806


The will of the Galaxy.


View Profile WWW Email
« Reply #1 on: January 20, 2010, 10:49:56 AM »

How odd.

interesting, the 2nd code could never be activated unless you held a rock with out holding it.
Logged

Show your power, Gun Del Hell! Show them their fate! Yes! Yes! Yes! Yes! Yes! Here we go! Let's go, go, go, go, Django! Light and Dark! It comes down to this! Be afraid, Sun!
Arucard
Mossy
*
Posts: 2811


Hey! Is that CANDY?!?!?

Arucard.Tepes
View Profile Email
« Reply #2 on: January 20, 2010, 11:44:08 AM »

You can hold it with your face...briefly.  Tongue
Yeah, strange thing to overlook though.
Logged

Oh, they look like monsters to you?

There's a light in the darkness of everybody's life.
gummybears123
Mossy
*
Posts: 5785


Yummy Gummy!


View Profile
« Reply #3 on: January 20, 2010, 03:09:53 PM »

He's using his teeth... DUH Grin
Logged

I made a rap.
It sounds dumb, like reading a map
I really should stop this thing before it goes too far
But I don't really car as long as I stay below the radar
Those big companies won't get me no
I'll get away before the fuzz show

-Most famous rapper of Mossmouth
Kirbylord
marsgreekgod
Big Bossy
Mossy
*
Posts: 9806


The will of the Galaxy.


View Profile WWW Email
« Reply #4 on: January 20, 2010, 03:11:31 PM »

stick it in your hat.

really there is no need to say anything more here.
Logged

Show your power, Gun Del Hell! Show them their fate! Yes! Yes! Yes! Yes! Yes! Here we go! Let's go, go, go, go, Django! Light and Dark! It comes down to this! Be afraid, Sun!
gummybears123
Mossy
*
Posts: 5785


Yummy Gummy!


View Profile
« Reply #5 on: January 20, 2010, 03:12:03 PM »

Which is another way of saying LOCK THIS STUPID THREAD Grin
Logged

I made a rap.
It sounds dumb, like reading a map
I really should stop this thing before it goes too far
But I don't really car as long as I stay below the radar
Those big companies won't get me no
I'll get away before the fuzz show

-Most famous rapper of Mossmouth
Kirbylord
marsgreekgod
Big Bossy
Mossy
*
Posts: 9806


The will of the Galaxy.


View Profile WWW Email
« Reply #6 on: January 20, 2010, 03:14:09 PM »

gummy. posting like that is just trying to get a high post count.
Logged

Show your power, Gun Del Hell! Show them their fate! Yes! Yes! Yes! Yes! Yes! Here we go! Let's go, go, go, go, Django! Light and Dark! It comes down to this! Be afraid, Sun!
gummybears123
Mossy
*
Posts: 5785


Yummy Gummy!


View Profile
« Reply #7 on: January 20, 2010, 03:22:18 PM »

I don't care about post count... I'm mossy remem?
Logged

I made a rap.
It sounds dumb, like reading a map
I really should stop this thing before it goes too far
But I don't really car as long as I stay below the radar
Those big companies won't get me no
I'll get away before the fuzz show

-Most famous rapper of Mossmouth
Kirbylord
Kegluneq
Big Bossy
Mossy
*
Posts: 2260



View Profile Email
« Reply #8 on: January 20, 2010, 09:22:16 PM »

I gave up on post count a looong time ago.

TBH, gummy had something to do with it.
Logged

A wild SHINY MOSSY appeared!
marsgreekgod
Big Bossy
Mossy
*
Posts: 9806


The will of the Galaxy.


View Profile WWW Email
« Reply #9 on: January 20, 2010, 09:31:27 PM »

... don't worry keglueq you still high ranked here.
Logged

Show your power, Gun Del Hell! Show them their fate! Yes! Yes! Yes! Yes! Yes! Here we go! Let's go, go, go, go, Django! Light and Dark! It comes down to this! Be afraid, Sun!
Kegluneq
Big Bossy
Mossy
*
Posts: 2260



View Profile Email
« Reply #10 on: January 20, 2010, 10:12:06 PM »

I just realized I've become Mossy not too long ago. Yay!
Logged

A wild SHINY MOSSY appeared!
marsgreekgod
Big Bossy
Mossy
*
Posts: 9806


The will of the Galaxy.


View Profile WWW Email
« Reply #11 on: January 20, 2010, 11:17:27 PM »

sweet! good job.

where is how do you spell her name that said she would be back when there where other mossys?
Logged

Show your power, Gun Del Hell! Show them their fate! Yes! Yes! Yes! Yes! Yes! Here we go! Let's go, go, go, go, Django! Light and Dark! It comes down to this! Be afraid, Sun!
Kegluneq
Big Bossy
Mossy
*
Posts: 2260



View Profile Email
« Reply #12 on: January 21, 2010, 12:53:03 AM »

delgato? no idea.
Logged

A wild SHINY MOSSY appeared!
Arucard
Mossy
*
Posts: 2811


Hey! Is that CANDY?!?!?

Arucard.Tepes
View Profile Email
« Reply #13 on: January 21, 2010, 09:21:12 AM »

Modern Warfare 2, or on KoL with Eguee.

Edit: WOW! How did that happen? Sorry, E.
« Last Edit: January 22, 2010, 08:53:14 AM by Arucard » Logged

Oh, they look like monsters to you?

There's a light in the darkness of everybody's life.
gummybears123
Mossy
*
Posts: 5785


Yummy Gummy!


View Profile
« Reply #14 on: January 21, 2010, 04:54:22 PM »

COD6 is amazing
Logged

I made a rap.
It sounds dumb, like reading a map
I really should stop this thing before it goes too far
But I don't really car as long as I stay below the radar
Those big companies won't get me no
I'll get away before the fuzz show

-Most famous rapper of Mossmouth
Kirbylord
Pages: [1]
  Print  
 
Jump to: