[DiscordArchive] static_cast<const Unit*>(this) are you sure that's correct ?
[DiscordArchive] static_cast<const Unit*>(this) are you sure that's correct ?
Archived author: jackpoz • Posted: 2023-01-24T20:48:11.778000+00:00
Original source
static_cast<const Unit*>(this) are you sure that's correct ?
Archived author: jackpoz • Posted: 2023-01-24T20:56:25.491000+00:00
Original source
UNIT_FIELD_MAXHEALTH = OBJECT_END + 0x001A, // Size: 1, Type: INT, Flags: PUBLIC
Archived author: jackpoz • Posted: 2023-01-24T20:56:43.174000+00:00
Original source
CORPSE_FIELD_GUILD = OBJECT_END + 0x001A, // Size: 1, Type: INT, Flags: PUBLIC
Archived author: jackpoz • Posted: 2023-01-24T20:56:58.043000+00:00
Original source
I don't think that code is correct
Archived author: CyberMist2 • Posted: 2023-01-24T20:58:13.357000+00:00
Original source
How to do it correctly please
Archived author: CyberMist2 • Posted: 2023-01-24T21:00:06.495000+00:00
Original source
Would be nice if we have this setting on tc
Archived author: jackpoz • Posted: 2023-01-24T21:01:01.201000+00:00
Original source
well you shouldn't do a static_cast without being sure that the object is of that type
Archived author: jackpoz • Posted: 2023-01-24T21:01:52.869000+00:00
Original source
also where is the code of IsFogOfWarVisibleHealth ?
Archived author: jackpoz • Posted: 2023-01-24T21:02:08.212000+00:00
Original source
better to fork TC, create a branch and share the branch with the changes
Archived author: CyberMist2 • Posted: 2023-01-24T21:03:16.487000+00:00
Original source
Its a new function in unit.cpp, it's reading a bolean like if its enabled in worldserver.conf sorry im on phone and closed my laptop ^^ so i cant copy paste from here