SoftCoder
cb456840cd
- added null checks for group selection
2015-10-25 09:14:28 -07:00
titiger
c3e2305e41
fixed a null pointer problem in gui
2015-09-05 22:46:15 +02:00
titiger
4ab574150a
group selections can be recalled with shift down.
...
Group selections can be recalled with shift down and the
group is added to the current selection.
2015-06-10 00:42:03 +02:00
titiger
504dc7dfd8
no more false clicks on minimap
...
if minimap was displayed outside of map, it was not possible to give
mouse click commands there.
2015-01-29 21:59:05 +01:00
titiger
ab02478096
enabled depth_test for colorpicking
...
To do it many changes were needed, because mouse position on map was
calculated using the depth buffer with current rendering state
2015-01-04 14:38:32 +01:00
SoftCoder
8210485a42
- a few bugfixes related to coverity scan
2014-12-15 19:44:26 -08:00
titiger
54905c0e5c
rename getCurrVector() to getCurrMidHeightVector()
2014-11-25 23:40:47 +01:00
titison
5de94dccc9
setLockedUnitForFaction
...
*removed debug (printf's)
2014-11-15 18:45:46 +01:00
titison
ea04a2bb58
setLockedUnitForFaction
...
*Showing an info in the info string ( above the requirements of the unit ) if locked
2014-11-15 18:30:48 +01:00
titison
850a9a7dc0
-AI can't command non-commandable units anymore
...
-Removed non-selectable
2014-08-07 21:00:27 +02:00
titison
72828c39a3
Added to booleans
...
1. selectable | if this is false, you cant select the unit.
2. commandable | if this is false, you cant give the units commands.
I advise to set a non-selectable unit to non-commandable too if you want to make a normal unit morph into it.
2014-07-28 17:03:36 +02:00
SoftCoder
39696b6a65
- added ability to share resources across same teams
2014-01-27 18:55:08 -08:00
SoftCoder
e63b3d7499
- added support for team unit sharing
2014-01-27 14:15:05 -08:00
SoftCoder
3111b733e2
- bugfix for chrono class calcs causing group camera recall to fail (And numerous other problems)
...
- added better tracking of mutexes by assigning them location info
2013-12-24 22:27:44 -08:00
Mark Vejvoda
929cc07895
- code cleanup based on additional gcc warnings
2013-11-19 07:05:45 +00:00
Mark Vejvoda
9268aaf279
- a few minor bug fixes related to code warnings
...
- code cleanup based on additional gcc warnings
- enabled additional gcc compiler warnings
2013-11-19 06:14:06 +00:00
Mark Vejvoda
1d3859ff32
- windows x64 updates to get things compiling on vc2012 x64
2013-11-02 11:04:52 +00:00
Mark Vejvoda
d2ba7b163b
a little refactoring of function names in language class
2013-10-29 06:13:38 +00:00
Mark Vejvoda
9e60723296
revert most doubles back to float and truncate at 6 decimals
2013-10-03 00:17:51 +00:00
Mark Vejvoda
dc503d6340
- attempt to see if this makes stability better
2013-10-02 20:22:10 +00:00
Mark Vejvoda
63ed244de2
- attempt to fix additional oos issues
2013-09-27 00:14:54 +00:00
Mark Vejvoda
37c2ace11a
- rollback last commit
2013-09-26 16:37:32 +00:00
Mark Vejvoda
7349a1f126
- attempt to convert use of more floats to double
2013-09-25 15:40:19 +00:00
Mark Vejvoda
836e61d5d6
loggging fixes for language specific info (use english always)
2013-09-21 20:50:58 +00:00
Titus Tscharntke
a5834ddf57
I hope it solves a timing problem with rendering and resetting the gui. https://forum.megaglest.org/index.php?topic=9163.0
2013-09-14 23:56:26 +00:00
Mark Vejvoda
0ead6a36dc
full support for translated techtrees
2013-06-13 08:55:48 +00:00
Titus Tscharntke
27e46dd10a
selected units are sorted by type(id) now. this gives less jumping selection with colorpicking and a sorted selection display in the GUI.
2013-06-02 20:30:22 +00:00
Mark Vejvoda
8408526b12
code cleanup based on cppcheck results
2013-05-17 03:59:34 +00:00
Titus Tscharntke
325f33a155
Selection via cellmap turned out not to be good -> revert
2013-05-02 20:52:23 +00:00
Titus Tscharntke
db921c3fb7
attack enemy units even if you missed them and only hit the map cell.
2013-04-29 23:05:56 +00:00
Mark Vejvoda
b2853b760e
- fix bug reported on sf: Glest::Game::Selection::select crash with NULL pointer - ID: 3608835
2013-03-24 04:43:50 +00:00
Titus Tscharntke
61e75417a5
Respecting requirements for attack commands . ( Bug fix for attack hot-key cycling through attacks. )
2013-02-24 23:56:49 +00:00
Titus Tscharntke
2bc2555c22
Attack key ("a") cycles through attack types if you have a uniform selection of units
2013-02-22 23:31:55 +00:00
Mark Vejvoda
9d19ff2b57
- added the first draft of joining games in progress
2013-02-15 18:25:10 +00:00
Titus Tscharntke
f06f86904c
recall group select again
2013-02-08 23:54:50 +00:00
Mark Vejvoda
f87b8b6ee2
- updated code to protect against null pointers and uninitialized values and threading issues
2013-02-04 08:30:43 +00:00
Mark Vejvoda
743efc0822
- fixed null pointer discovered by titi
2013-01-24 23:10:25 +00:00
Mark Vejvoda
cc89b6ba65
- add selection type to debug view ingame
2013-01-24 00:14:29 +00:00
Mark Vejvoda
93438d42f4
- attempt to see if this fixes units that do not attack when right clicking enemy
...
- see if this fixes crashes when using color picking
2013-01-23 21:03:00 +00:00
Mark Vejvoda
8134da2f12
- attempt to see if this fixes units that do not attack when right clicking enemy
2013-01-23 19:53:12 +00:00
Mark Vejvoda
7146a20976
- attempt to fix / improve performance of color picking
2013-01-22 04:30:06 +00:00
Mark Vejvoda
66ea587b7f
- bugfix from tomreyn's stacktrace for resource selection
2012-11-14 23:24:25 +00:00
Mark Vejvoda
1dbcabf12c
- minor feature request added from sourceforge, when command given cannot be executed, sometimes we show the requirements of the command so the user knows why it failed
2012-11-10 19:39:55 +00:00
Mark Vejvoda
e86cb3aeff
- more code cleanup based on suggestions from cppcheck
2012-10-18 08:16:47 +00:00
Mark Vejvoda
505206059b
- added new lua method for Muwuum:
...
void giveStopCommand(int unitId)
bool selectUnit(int unitId)
void unselectUnit(int unitId)
void addUnitToGroupSelection(int unitId,int groupIndex)
void recallGroupSelection(int groupIndex)
void removeUnitFromGroupSelection(int unitId,int group)
void setAttackWarningsEnabled(bool enabled)
bool getAttackWarningsEnabled()
2012-10-17 20:15:50 +00:00
Mark Vejvoda
e63e634e1e
- added a bit more lua and updated capture enemy flag
2012-10-13 07:33:33 +00:00
Mark Vejvoda
9e75b9144c
- removed cell marker from popup menu and moved to hotkeys (f2 add f3 remove)
...
- added a new experiemntal feature called 'follow unit'. select 1 unit then press f4 and when the unit moves the camera tries to look from the units perspective. To turn this off select no unit and press f4.
2012-09-24 17:13:27 +00:00
Titus Tscharntke
3e0e9620ae
fixed a bug which prevented you from selecting units directly after loading a game
2012-09-13 22:40:14 +00:00
Mark Vejvoda
897346d1f5
- added the beginning work to support translatable techtrees
2012-05-02 20:46:47 +00:00
Mark Vejvoda
dbb116f250
- load of changes to get things compiling under VC++ 2010 (with updated deps seperate for vc2010)
2012-04-20 01:04:05 +00:00
Mark Vejvoda
c8fdc9269f
- fix win32 build
...
- cleanup a lot of win32 compiler warnings
2012-04-16 20:15:57 +00:00
Mark Vejvoda
8c0bf75bf5
- got built in memory leak working. Just edit leak_dumper.h and uncomment:
...
//#define SL_LEAK_DUMP
- got better / more accurate stack dumps when we detect errors in game.
- Both of these need to be worked on in windows next, win32 may not compile for now until i fix it on that platform.
- BE VERY CAREFUL when working in leak_dumper.* it may cause GCC and your system to crash if you don't know what you are doing!
2012-04-14 21:21:09 +00:00
Mark Vejvoda
76c3fa1949
- fixed segfault when a unit is selected and they die (this is a long standing bug and not related to savegame)
2012-04-12 15:38:53 +00:00
Mark Vejvoda
2ab041813f
- code cleanup based on cppcheck report
2012-04-05 03:53:59 +00:00
Titus Tscharntke
4aae520da6
Highlighting rendering without cycling through all units each frame ...
2012-04-04 22:57:32 +00:00
Titus Tscharntke
6c12bfbec8
Improved resource object selection implementation which allows highlight effects now too.
...
Generally changed highlight effect to something more obvious
2012-04-04 00:30:16 +00:00
Titus Tscharntke
1df365d697
I removed the automatic game pausing when message are shown because I don't like it ( sc does not like it at all so ... ). Still auto-pausing while showing menues ingame in singleplayer.
2012-04-03 00:32:52 +00:00
Titus Tscharntke
8c6dde365b
mouse pointer shows multi click command state
2012-04-02 23:37:03 +00:00
Titus Tscharntke
42b289fe1e
cursor work in progress ... ( for tomreyn and me to test )
2012-04-02 22:17:10 +00:00
Mark Vejvoda
fc125bec37
- added command groups and unit selection to save / load game info
2012-03-15 07:09:36 +00:00
Mark Vejvoda
c5331b7e8a
- initial work to save game state to XML. Current only saves when out of synch or game end occurs and saves to same folder as log files and file is called: megaglest-saved.xml
...
(Currently we store way too much info but this is a starting point)
2012-03-10 03:27:25 +00:00
Mark Vejvoda
9852325da6
- fixed Martiño Figueroa's name in all copyrights in source code
...
- added copyrights to files that were missing it
2011-12-14 07:40:48 +00:00
Mark Vejvoda
d33e1174a5
- bugfixes related to cppcheck report
...
- bugfixes found using valgrind (memory leaks)
2011-12-02 16:07:59 +00:00
Mark Vejvoda
c6d4e898a0
small bugfix for handling morph commands in the UI (was not properly handling commandclass). Added validation to tell modders that we have a max if 6 morphs that can display in the UI
2011-10-21 16:04:21 +00:00
Mark Vejvoda
d44959d69c
- phase 1 of cppcheck verbose fixes
2011-08-31 23:10:43 +00:00
Mark Vejvoda
2c80543889
- attempt to group command execution so units given the same command at the same time will work more smartly (closer units go first and so on)
2011-07-05 04:37:35 +00:00
Mark Vejvoda
4b6bc7a4a7
- loads of changes in order to prepare for better input (not using char but SDLKey instead)
2011-06-26 01:55:08 +00:00
Mark Vejvoda
ba3071c15b
- bugfix for group key camera movement (respect different group keys being pressed)
2011-06-10 16:59:19 +00:00
Mark Vejvoda
36c25f709d
- new recall group camera center timeout value can be overriden in glestuserini using:
...
RecallGroupCenterCameraTimeoutMilliseconds=1500
2011-06-09 22:41:49 +00:00
Mark Vejvoda
d668550942
- exclusive feature for Coldfusionstorm! Press the group key a second time within 1.5 seconds and the camera centers on the group
2011-06-09 22:37:37 +00:00
Titus Tscharntke
bc2c59a82a
just put a hud.png in a faction dir and you got a HUD overlay
2011-06-09 00:59:03 +00:00
Mark Vejvoda
9c992ed353
- fixed observers to be able to see queued commands of all other players
...
- updated authors for tilesets that we replaced sounds for
- updated source code release archive building script with improvements from svenstaro
- added commondata folder to data and install scripts
2011-05-06 08:44:50 +00:00
Titus Tscharntke
d4fb120b88
this fixes it ... but i am not very happy with the current state :/
...
maybe better skip the update call for release?
2011-05-02 01:22:33 +00:00
Titus Tscharntke
6c8e36fd24
last try to fix the display crash for today. If this does not work comment the line 813 to fix it.
2011-05-02 00:34:04 +00:00
Titus Tscharntke
620fc1cff1
next try to fix the display crash problem ....
2011-05-01 23:48:08 +00:00
Titus Tscharntke
c8bb5e6fce
bugfix for crash ( when no unit is selected and display text is calculated )
2011-05-01 22:28:42 +00:00
Titus Tscharntke
9ce83ed21b
queued commands are displayed in a better way
2011-05-01 20:19:41 +00:00
Mark Vejvoda
0abca7fb7a
- bugfixes for clicking outside of the map co-ordinates
...
- show up to 5 descriptions for queued items when producing
2011-04-27 22:35:45 +00:00
Mark Vejvoda
dd9b984a82
- in observer mode, show queued work for all factions
...
- when showing queues, now also show up to a max of 4 details for the first 4 items in the queue
2011-04-27 05:58:08 +00:00
Mark Vejvoda
5a6418ac60
- removed some debug statements to see if it will improve debug logging performance
2011-04-11 00:11:52 +00:00
Titus Tscharntke
b7fb8fe335
missing resources to morph are reported to console now
2011-04-05 21:46:02 +00:00
Titus Tscharntke
2f250846b1
forgot to comment debug ...
2011-03-29 23:19:19 +00:00
Titus Tscharntke
c99fb68f5b
selecting mining positions (and by this mining itself ) should be much better now
2011-03-29 21:44:36 +00:00
Mark Vejvoda
3b56aa4475
- performance changes... (problem found by titi) most debug calls line are skipped when the debug flag is disabled even BEFORE getting into the handledebug method.
...
This improves performance VERY MUCH.
2011-03-28 03:54:23 +00:00
Titus Tscharntke
5db11ec538
double click selection for units standing near or in buildings
2011-03-08 20:19:19 +00:00
Titus Tscharntke
922df8e025
up to 36 units selectable; maps can set camera heigth now ( be careful with this for performance reasons! )
2011-02-25 00:31:42 +00:00
Titus Tscharntke
a06cb541b1
units with move skill have higher priority while selecting now than those without move skill ( typically buildings )
2011-02-22 16:18:44 +00:00
Mark Vejvoda
2357e2cfd1
- Titi, fixed the remove object so its done in the Object destructor (using an interface)
2011-02-15 04:34:19 +00:00
Titus Tscharntke
01db66105e
status of serverline display fix / ressources are no longer selectable via rectangle ( which was quite useless )
2011-02-15 00:24:31 +00:00
Titus Tscharntke
a214fa87f5
clickable resources with display ; softcoder please look at unit_updater.cpp line 1032
2011-02-13 21:04:30 +00:00
Titus Tscharntke
30da435fc2
target selection for ressource objects is done with opengl picking now
2011-02-13 14:35:17 +00:00
Titus Tscharntke
9faa63fd27
upgraded or upgrading upgrades still show their info
2011-01-23 23:57:46 +00:00
Mark Vejvoda
66261ad662
- updated line endings to unix style characters to fix Bug #3085838
2011-01-20 15:56:30 +00:00
Mark Vejvoda
9b275a5077
- added guard against NULL commandtype clicking in icon panel (discovered during testing)
2011-01-10 06:43:47 +00:00
Titus Tscharntke
38da21ae18
fix in german languagefile, buildings can set meeting points when under construction
2011-01-09 20:52:00 +00:00
Mark Vejvoda
7347dc9545
- bugfix for multi-build queued commands
2011-01-08 21:53:05 +00:00
Titus Tscharntke
591acdded4
No red 3d arrow pointer is painted when commanding via minimap
2010-12-20 03:12:00 +00:00
Titus Tscharntke
7305391b6d
Unit commanding via minimap
2010-12-18 17:18:36 +00:00
Mark Vejvoda
5cf0313c5a
- bugfix for cancel icon displaying when unit has only the 'stop' command active
2010-10-28 18:31:12 +00:00
James McCulloch
e8b28b4298
* Fix for phantom cancel button
2010-09-24 04:52:51 +00:00