map player count

Discuss the future of Warzone 2100 with us.
Post Reply
Originway
Trained
Trained
Posts: 412
Joined: 08 Aug 2012, 06:22

map player count

Post by Originway »

why do you guys start with 0 instead of 1?
player 0 - player 9 instead of player 1 - player 10 ?
I think map preview should show player 1 - player 10
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: map player count

Post by NoQ »

And now imagine inline private chat with player 10.
Originway
Trained
Trained
Posts: 412
Joined: 08 Aug 2012, 06:22

Re: map player count

Post by Originway »

:lol2:
never tried that
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: map player count

Post by milo christiansen »

Counting from 0 is a programmer thing. Most computer laungages index from 0, hence most programmers count from 0 when enumerating things. It makes sense most of the time, but for things like this it's better to take "curPlayer + 1" :wink:
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: map player count

Post by aubergine »

I never thought about the chat thing that NoQ mentioned, now having first player = 0 makes a lot more sense.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: map player count

Post by milo christiansen »

Now that you say that... It may not just be Programmer Lazyness (tm) :P
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
Post Reply