Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2020-06-24 00:00:00Z and 2020-06-25 00:00:00Z
Avatar
ah, so that's what the snaps are. I thought they were some kind of screenshot function 😛 (come on, snapshot and screenshot are similar)
00:25
also, how does creating a function for race begin and end sound?
Avatar
to handle the automatic demo recording, for example
Avatar
the snapitem PlayerInfoRace has the field m_RaceStartTick. When it changes from -1 to a valid tick the race starts, when it turns -1 again the race ends. When you cross the finish line the client receives the netmessage Sv_RaceFinish, which contains the time
09:33
damn no... the race starts when the snapshot contains a PlayerInfoRace item and the previous didn't. I used the wrong type for m_RaceStartTick =\
Avatar
when changing a localisation string, need I commit the changes to teeworlds/translation files?
Avatar
i think that teeworlds localize with transifex's help
Avatar
yeah, found that
12:05
not familiar with the site at all
12:05
been trying to fix #2658
12:05
and I fixed it. however it breaks the foreign localisation
Avatar
That's normal
Avatar
the string needs to be changed on transifex by someone then
Avatar
well, it will have to be translated again
15:17
all you should do is change the string in the code
Avatar
yay, contribution capitalizing 4 letters
Avatar
xd (edited)
Avatar
I realized that GameContext has GetPlayerChar(int ClientID) with all checks (like object's existance) but hasn't GetPlayer(int ClientID) with validation of ID and object's existance check (edited)
16:32
It will save us from code duplication, like if(ID >= 0 && ID < MAX_PLAYERS && m_apPlayers[ID] && m_apPlayers[ID]->GetTeam() == TEAM_SPECTATORS) (example if-statement)
Avatar
Looks like a freetype thing, independent of bam/cmake Error: freetype 2.10.1 is already installed To upgrade to 2.10.2, run `brew upgrade freetype`.
Avatar
@gerdoe if(m_apPlayers[ID]) is enough
18:57
never had issues with it
19:00
most of case when I do srv side code, I never have ID below 0 so, or I just clamp it & done
19:05
but ye if there's some way someone gets -1 as ID it's useful
Avatar
as example ccharacter::takedamage(...)
Exported 27 message(s)