summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-05-02Fixed condition in compareStrIThorbjørn Lindeijer1-1/+1
The result of the first part of the condition, "itA < endA", was simply unused. Discovered thanks to attribute ‘nodiscard’ [-Wunused-result] in more recent C++ standard / compiler.
2023-05-01Use more cores when building the DockerfileThorbjørn Lindeijer1-1/+1
2023-05-01CMake: Use cmake-format to reformat all CMakeLists.txtThorbjørn Lindeijer4-215/+200
Especially to change them to lowercase.
2022-08-25Updated Docker image to Fedora 36Thorbjørn Lindeijer1-2/+2
Also reduces its size from 483MB to 296MB.
2022-08-25Reduced the size of the DockerfileThorbjørn Lindeijer1-2/+5
Went from 818MB to 483MB. Still rather large, but quite an improvement.
2022-08-25Removed Upstart filesThorbjørn Lindeijer2-33/+0
Upstart was replaced by systemd on all relevant systems. And running manaserv is now easiest by using Docker anyway.
2022-08-19Apply C++11 fixitsThorbjørn Lindeijer51-396/+272
modernize-loop-convert modernize-deprecated-headers
2022-08-19Apply C++11 fixitsThorbjørn Lindeijer107-507/+476
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2022-08-19Updated DALStorage -> Storage in error messagesThorbjørn Lindeijer3-78/+78
Finishing 213af0fbde3f198ad1ab2143d32fc6798b7f8f50.
2022-08-19Avoid some warning, iircThorbjørn Lindeijer1-2/+2
2022-08-19Premature optimization based on clazy hintThorbjørn Lindeijer1-1/+3
2022-08-19Added net_accountListenToGameHost config optionThorbjørn Lindeijer3-3/+6
This is because the network interface on which the account server listens to the game server does not need to match the one on which the account server listens to the client.
2022-08-19Fixed possible leak in AccountHandler::handleUnregisterMessageThorbjørn Lindeijer5-80/+85
Fixed by changing account instances to be managed by std::unique_ptr, so we don't forget to delete them somewhere, like in that function as well as during shutdown in AccountHandler.
2022-06-16Updated PhysFS usageThorbjørn Lindeijer1-6/+7
We now require at least PhysFS 2.1. Also no longer add the "current directory" to the search path and allow the "PKG_DATADIR" used to locate files shipping with the server to be overridden by the "serverPath" configuration variable. Closes #81
2022-06-16Removed usage of deprecated std::unary_functionThorbjørn Lindeijer1-4/+2
Appears to have been entirely unnecessary.
2022-05-25Check return value for enet_peer_sendThorbjørn Lindeijer2-6/+18
If it fails, we will need to destroy the packet ourselves rather than relying on enet to eventually destroy it.
2022-05-25Fixed compile against Lua 5.4Thorbjørn Lindeijer1-4/+9
Now lua_resume takes 4 arguments, and the number of result values is set on the 4th one.
2022-05-25Fixed compiler warnings about dynamic exception specificationsThorbjørn Lindeijer3-15/+6
"warning: dynamic exception specifications are deprecated in C++11" Fortunately, it's effectively the same thing as not mentioning anything at all. The fact that these functions can throw this exception is already in their documentation.
2018-10-03Build images into GitLab registryErik Schilling1-0/+19
2018-10-03Install sql scriptsErik Schilling1-0/+2
2018-10-03Properly install as part of the docker imageErik Schilling1-12/+8
2018-09-14Merge pull request #82 from Ablu/luafixErik Schilling1-1/+1
Do not search for old lua explicitly
2018-09-13Do not search for old lua explicitlyErik Schilling1-1/+1
We also support the newer versions and systems like Fedora do not ship the older lua versions.
2018-09-06Merge pull request #81 from Ablu/dockerErik Schilling2-0/+23
Added Dockerfile
2018-09-06Added DockerfileErik Schilling2-0/+23
2018-04-05Fixed socklen_t typedef conflict in enetErik Schilling1-0/+2
It is reported as https://github.com/lsalzman/enet/issues/90 but unfixed in upstream so far...
2015-06-07Updated enet to 1.3.13Thorbjørn Lindeijer16-472/+895
Updating enet was due since 3 years, but now we could skip 9 versions. Our CMakeLists.txt file was replaced with the one from enet.
2015-06-07Fixed compile when using Lua 5.3Thorbjørn Lindeijer2-5/+3
It seems like properly upgrading to Lua 5.3 would affect quite a few small function calls, but fortunately compatibility can be achieved with just a define for now.
2015-06-07Fixing some compilation issues when using GCC 5.1Thorbjørn Lindeijer2-4/+4
For whatever reason, GCC 5.1 no longer finds an operator<< overload for streaming a std::ostringstream into a std::ostringstream.
2015-04-25Do not pollute the context with the icu namespaceErik Schilling1-0/+3
2015-04-24Fix crash if the client sends garbage public id valuesErik Schilling1-1/+5
Indexing an array with a negative int as index is no good idea...
2014-05-05Make travis build with gcc 4.8Erik Schilling1-1/+3
2014-03-02IdManager tweaksThorbjørn Lindeijer1-4/+2
2014-02-03Fixed SQL InjectionErik Schilling1-3/+4
2013-12-29Small cleanupErik Schilling6-19/+11
- Deleted empty constructor rather than throwing, resulting in compiletime errors rather than runtime errors. - Removed some remainings of currentMana - Fixed some compiler warnings regarding structs getting forward declared as classes.
2013-12-08Restored copy constructor protection for mapcompositeErik Schilling1-0/+1
2013-12-08deleted copy constructors in Component rather than all the subclassesErik Schilling4-16/+11
2013-12-08Delete some unused copy constructorsThorbjørn Lindeijer5-13/+10
2013-11-28Include the list of characters in the login responseThorbjørn Lindeijer4-14/+17
This makes it easier on the client to decide whether to immediately open the Create Character page or to go to the Choose Character page. Still supports client version 9 as well.
2013-11-28Added Upstart filesThorbjørn Lindeijer2-0/+33
These files may be useful for people running manaserv on Ubuntu. They can for example be placed in /etc/init for easily stopping/starting and restarting manaserv.
2013-11-02Do not send dir changes back to the player itselfErik Schilling1-1/+1
2013-11-01Fixed typo in docsErik Schilling1-2/+2
2013-10-19Fixed negative attribute valuesErik Schilling1-1/+1
Note @Bertram25: c++11 comes with lowest() min() for float types only returns the next positive value > 0.
2013-10-16Fixed protocol descriptionErik Schilling1-1/+1
2013-10-13Changed argument to const &Thorbjørn Lindeijer1-1/+2
2013-10-13Added GPMSG_NPC_BUYSELL_RESPONSEThorbjørn Lindeijer2-7/+19
Without this message it is not possible to reliably know how many items were traded with an NPC at the client side. It helps with updating the shop's inventory.
2013-10-06Marked getRandomString as staticThorbjørn Lindeijer1-1/+1
2013-10-01Send the character data in a single messageErik Schilling2-36/+30
2013-09-30Removed outdated commentErik Schilling1-4/+0
2013-09-30Actually send and store the equipment slotErik Schilling2-15/+6
I was wrong to assume that we do not need it. The accountserver needs to send the info the the client in order to display the equipment on the character selection page.