gastamper / groundzero2

A fork of the GroundZero2 codebase with bug fixes, standardization, and sanity-related changes.
8 stars 7 forks source link

comm.c: occasional undesired newline on new prompt #60

Open gastamper opened 6 years ago

gastamper commented 6 years ago

Requires some troubleshooting to address; the below kill message should not have two empty lines before prompt is displayed:

6666/6666hp > 
A Team ALPHA Marine(ALPHA) ripped apart an Elite Button Clan Scout(MOB). CARNAGE!

6666/6666hp > 

Related to commit from #59

gastamper commented 6 years ago

Additionally:

6666/6666hp > 
who
Worth: 0 - Scores: (ALPHA): 0   (BRAVO): 0   

KILLS---DEATHS--TEAM-----RANK-----NAME----
250     6       ADMIN    NOVICE   Admin is FRESH MEAT 

Players found: 1

6666/6666hp > 
who
Worth: 0 - Scores: (ALPHA): 0   (BRAVO): 0   

KILLS---DEATHS--TEAM-----RANK-----NAME----
250     6       ADMIN    NOVICE   Admin is FRESH MEAT 

Players found: 1

6666/6666hp > 
gastamper commented 6 years ago

Countdown has some issues as well, but looks like it might be partially just extra newlines in the incoming strings:


6666/6666hp > 
Oh no! enforcer has depressed the button!
300 seconds until core meltdown!

6666/6666hp > 
240 seconds until core meltdown!

6666/6666hp > 
180 seconds until core meltdown!

6666/6666hp > 
150 seconds until core meltdown!

6666/6666hp > 
120 seconds until core meltdown!

6666/6666hp > 
90 seconds until core meltdown!

6666/6666hp > ```
gastamper commented 6 years ago

Prompt displays after Game Over screen as well.

gastamper commented 5 years ago

This is probably caused by change https://github.com/gastamper/groundzero2/commit/471752ec9a55558036c55cbbb07bbd7efff4cf57 which added prompt rewriting .