summaryrefslogtreecommitdiff
path: root/src/main.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-04-09Fixed some warningsBjørn Lindeijer1-1/+1
Unused variable, compiler suggested braces to disambiguate an else statement and another comparision between signed and unsigned integers.
2009-04-09Remove a segfault when exiting the clientJared Adams1-1/+0
2009-04-08Add a more flexible wallpaper systemJared Adams1-18/+42
2009-04-08Make some more file build for both serversJared Adams1-36/+12
Also some cleanup in main.cpp
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-3/+4
In an attempt to make the GUI code a little more structured, basic widgets are now put in gui/widgets. Many includes were also cleaned up.
2009-04-07Make GeneralHandlers for both networksJared Adams1-172/+42
Also make Net::LogoutHandler
2009-04-07Fixed compile for tmwserv clientBjørn Lindeijer1-3/+0
2009-04-06Implement TMWServ's CharHandlerJared Adams1-1/+3
Also cleanup character creation, which isn't functional at the moment.
2009-04-05Implement TMWServ's Admin-, Chat-, and MapHandlersJared Adams1-1/+1
2009-04-02Make eAthena's CharHandlerJared Adams1-9/+4
Also add ping to MapHandler and fill in eAthena's MapHandler's connect method.
2009-04-01Create a few more handlers for eAthenaJared Adams1-3/+3
Map, chat, and admin have been finished (to the degree they handle all existing cases).
2009-03-29Merge branch 'master' of git@gitorious.org:tmw/mainlinePhilipp Sehmisch1-20/+18
2009-03-29Fixed compilation on WindowsPhilipp Sehmisch1-3/+4
2009-03-28Take the server port out of the updates dirBjørn Lindeijer1-2/+1
It doesn't make much sense to combine the update host with the server port. Either use the update host (and path) or the server and its port. To me it makes more sense that if different servers share the same update host, this data should be shared by the client. Ultimately we should store the updates by their hash, so that we can stick everything in the same place and avoid storing any duplicates.
2009-03-27Moved the inventory and storage offset handling into netcodeBjørn Lindeijer1-8/+11
No need to complicate the item containers and inventory classes with a silly offset used by the eAthena server. Also fixed the logToStandardOut option by reading it from the config after the configuration has been initialized.
2009-03-27Clean up of most of the Network pointersBjørn Lindeijer1-1/+1
Now that messages can be sent without requiring a pointer to the Network instance, a lot of cleanup was possible.
2009-03-27Made eAthena's Network class statically accessibleBjørn Lindeijer1-7/+3
Now the instance doesn't need to be passed into the MessageOut class anymore. Expect a lot of cleanup in the next commit.
2009-03-27Removed unnecessary parenthesis on constructorsBjørn Lindeijer1-2/+2
2009-03-27Simplified and fixed initialization of login dataBjørn Lindeijer1-27/+14
Command line parameters were being overridden by old configuration settings.
2009-03-27Merge branch 'aethyra/master'Bjørn Lindeijer1-2/+4
Conflicts: src/beingmanager.cpp src/gui/confirm_dialog.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/label.cpp src/gui/label.h src/gui/popup.cpp src/gui/popup.h src/gui/scrollarea.cpp src/gui/skin.cpp src/gui/skin.h src/gui/speechbubble.cpp src/gui/window.cpp src/gui/window.h src/localplayer.h src/main.cpp src/net/ea/playerhandler.cpp src/resources/ambientoverlay.h src/resources/dye.cpp src/resources/imagewriter.cpp src/resources/itemdb.cpp src/shopitem.cpp
2009-03-27Moved choosing of random death message to a functionBjørn Lindeijer1-13/+13
Also dynamically calculated the size of the array, so that you don't have to count the messages manually. :P
2009-03-25Merged relevent changes from TMW commitIra Rice1-22/+32
dfcc6397848d4597b386b688f689352de6c19ae2 Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-26Remove redundancy, fix variable names and other code cleanupsBjørn Lindeijer1-39/+44
2009-03-25A host of code style fixesBjørn Lindeijer1-2/+2
Mostly putting & and * in the right place and making some getters const.
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-49/+54
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-30/+35
Conflicts: Many files.
2009-03-23Change version to 0.0.29 and label in the GUIJared Adams1-2/+11
2009-03-23Move all TMWServ-specific code to net/tmwservJared Adams1-9/+9
Also fix several instances where the same net handler was being used for both servers, and a few other related oddities.
2009-03-22Fixed loading of units when skipping updatesBjørn Lindeijer1-2/+3
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-152/+811
This merge involved major changes on both sides, and as such took several weeks. Lots of things are expected to be broken now, however, we now have a single code base to improve and extend, which can be compiled to support either eAthena or tmwserv. In the coming months, the plan is to work towards a client that supports both eAthena and tmwserv, without needing to be recompiled. Conflicts: Everywhere!
2009-03-19Be sure to free the window iconJared Adams1-1/+5
2009-03-19Throttle framerates down to save CPU cycles. Now that we're getting highIra Rice1-2/+2
framerates in OpenGL even on older hardware, this should be done to conserve on CPU usage, rather than stressing it with more frames than the monitor can render. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-19Be sure to free the window iconJared Adams1-1/+5
2009-03-15Fix some mem leaksJared Adams1-1/+0
2009-03-14Made a label class derived from the guichan label class which utilizesIra Rice1-4/+3
the palette colors. While technically, this can be accomplished through other means, it's rather clumsy overall, and is prone to introducing in programmer errors. This commit finally catches every case where text is used, and applies the text color from the color dialog to each of them appropriately. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Extending the internal handling of colorssniper1-4/+4
The internal storage for colors was in the file color.h/color.cpp. It mainly managed the colors in the chat. The Color class was extended to be more generic now and it stores gcn::Color objects instead of integers now. A lot of new colortypes are now available, though not many of them are used for now, that will come in the next patches. The Color class was renamed to Palette and color.{h,cpp} to palette.{h,cpp} to better describe its purpose. The color config gui now lists the new colors, even changes them, but the result is not displayed properly for now.
2009-03-12Extending the internal handling of colorssniper1-4/+4
The internal storage for colors was in the file color.h/color.cpp. It mainly managed the colors in the chat. The Color class was extended to be more generic now and it stores gcn::Color objects instead of integers now. A lot of new colortypes are now available, though not many of them are used for now, that will come in the next patches. The Color class was renamed to Palette and color.{h,cpp} to palette.{h,cpp} to better describe its purpose. The color config gui now lists the new colors, even changes them, but the result is not displayed properly for now.
2009-03-12Made hair load again (commit e2d60401eaf55abe9e2251854f3174ffe0f4ad9eIra Rice1-0/+1
from TMW broke this, as it deleted the Being::load() method, which also loaded the hair styles). Also removed some unused variables in the being class. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Move emote sprite loading into EmoteDBJared Adams1-3/+0
2009-03-12Fix leaks in status effectsJared Adams1-1/+4
2009-03-12Move emote sprite loading into EmoteDBJared Adams1-2/+0
2009-03-11Fix segfault when being count reaches 0 too oftenJared Adams1-0/+3
2009-03-11Moved the Skin class outside of the Window class, in order to allowIra Rice1-24/+30
other widget containers to use skins as well, and to make it easier to extend later. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Fix order of function calls when loading dataJared Adams1-3/+3
2009-03-11Fix segfault when being count reaches 0 too oftenJared Adams1-0/+3
2009-03-10Remove some SetupWindow weirdnessJared Adams1-3/+0
2009-03-10Fix some mem leaksJared Adams1-0/+1
2009-03-10Remove some SetupWindow weirdnessJared Adams1-3/+0
2009-03-10Fix some mem leaksJared Adams1-1/+0
2009-03-10Fix some mem leaksJared Adams1-1/+0