diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-07-16 17:22:39 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-07-16 17:22:39 -0300 |
| commit | 6d498fe17dab48cfd8fc8a4da62a573b799e10ba (patch) | |
| tree | 1c8d55bd907b35abf014385dbedb90b2ae98f96a /src/query.cc | |
| parent | e65dc561acab7a9e49f59777f16cb040c574c64d (diff) | |
| download | game-6d498fe17dab48cfd8fc8a4da62a573b799e10ba.tar.gz game-6d498fe17dab48cfd8fc8a4da62a573b799e10ba.zip | |
fix most init and parsing bugs + critical bug with dynamic strings
With an appropriate query manager, the server now starts up and
seems to work but won't properly handle connections until we fix
the problem with threads and signals described in `TODO.md`.
Diffstat (limited to 'src/query.cc')
| -rw-r--r-- | src/query.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/query.cc b/src/query.cc index 5da269d..5384b79 100644 --- a/src/query.cc +++ b/src/query.cc @@ -846,7 +846,7 @@ int TQueryManagerConnection::reportStatement(uint32 ReporterID, const char *Play } } - this->sendQuad((uint32)NonZeroStatements); + this->sendWord((uint16)NonZeroStatements); for(int i = 0; i < NumberOfStatements; i += 1){ if(StatementIDs[i] != 0){ this->sendQuad(StatementIDs[i]); @@ -1253,7 +1253,7 @@ int TQueryManagerConnection::createPlayerlist(int NumberOfPlayers, const char ** } int TQueryManagerConnection::logKilledCreatures(int NumberOfRaces, const char **Names, - int *KilledPlayers,int *KilledCreatures){ + int *KilledPlayers, int *KilledCreatures){ this->prepareQuery(48); this->sendWord((uint16)NumberOfRaces); |
