Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Potential bug with multiple switch(market.getSize())  (Read 1369 times)

speeder

  • Captain
  • ****
  • Posts: 364
    • View Profile
Potential bug with multiple switch(market.getSize())
« on: December 04, 2015, 10:42:42 PM »

I noticed that market.getSize() can go up to 10, in the current vanilla game no planet uses it (I think the biggest planet on vanilla is size 8)

but the graphics, and the description for size 10 exist.

But I noticed that every time there is a "switch" in the source code, that uses the variable market.getSize() (including sometimes casting it to int... and it is already an int) it goes up to 9.

tl;dr: market.getSize() can return the value 10, but all switches that read it go up to 9.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Potential bug with multiple switch(market.getSize())
« Reply #1 on: December 04, 2015, 11:06:21 PM »

Thanks - not exactly a bug, since I'm fairly certain a size 10 market wouldn't work anyway for some other reasons, so they're for all intents and purposes not supported. Edit: Still something for me to keep in mind if they ever are, though - glad you brought it up.
« Last Edit: December 04, 2015, 11:13:51 PM by Alex »
Logged