mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 00:21:34 +00:00
- fixed character counting in TypeOn HUD message.
This commit is contained in:
parent
ec476877ac
commit
90c47e7497
2 changed files with 3 additions and 3 deletions
|
@ -741,7 +741,7 @@ void DHUDMessageTypeOnFadeOut::Serialize(FSerializer &arc)
|
||||||
|
|
||||||
bool DHUDMessageTypeOnFadeOut::Tick ()
|
bool DHUDMessageTypeOnFadeOut::Tick ()
|
||||||
{
|
{
|
||||||
if (LineLen > 0 && !Super::Tick ())
|
if (!Super::Tick ())
|
||||||
{
|
{
|
||||||
if (State == 3)
|
if (State == 3)
|
||||||
{
|
{
|
||||||
|
|
|
@ -393,8 +393,8 @@ size_t FString::CharacterCount() const
|
||||||
|
|
||||||
int FString::GetNextCharacter(int &position) const
|
int FString::GetNextCharacter(int &position) const
|
||||||
{
|
{
|
||||||
const uint8_t *cp = (const uint8_t*)Chars;
|
const uint8_t *cp = (const uint8_t*)Chars + position;
|
||||||
const uint8_t *cpread = cp + position;
|
const uint8_t *cpread = cp;
|
||||||
int chr = GetCharFromString(cpread);
|
int chr = GetCharFromString(cpread);
|
||||||
position += int(cpread - cp);
|
position += int(cpread - cp);
|
||||||
return chr;
|
return chr;
|
||||||
|
|
Loading…
Reference in a new issue