Commit graph

16127 commits

Author SHA1 Message Date
cybermind
06d0641ddd [+] Implemented old behavour for storing user data (logs, saves etc) to path where Stratagus is installed. To use this feature, enable ENABLE_USEGAMEDIR option in CMake 2013-08-03 18:43:17 +06:00
cybermind
7e9a32af91 [-] Another fix for map preview, which added player spots 2013-08-03 16:50:57 +06:00
cybermind
3e3ae32ca6 [-] Fixed map preview creating in OpenGL mode 2013-08-03 15:49:37 +06:00
cybermind
ad63ef7486 [+] Enhanced area-adjust-vitals spell by adding Range field
[*] ShieldPoints now a vital, so it may be modified through "adjust-vitals"/"area-adjust-vitals" spells
2013-08-03 15:16:20 +06:00
cybermind
31481cda99 [*] ShieldPiercing is now a variable instead of boolflag, so it may be modified through lua 2013-07-31 20:10:40 +06:00
cybermind
576796a15f [+] Added ShieldPermeability unit variable, which controls damage percent absorbed by shield. 0 - shield fully absorbs damage, 100 - shield unable to protect from damage 2013-07-31 19:55:25 +06:00
cybermind
4876406ff2 [-] Removed revision 8670, which causes periodic "network out of sync", because some player was able to randomly execute commands which aren't executed by other players. 2013-07-29 22:20:43 +06:00
joris
8115d4ae84 Use floorf instead of floor. 2013-07-25 17:42:05 +02:00
joris
ab48443be5 Fix typo 2013-07-25 17:41:05 +02:00
joris
cab3467df1 Fix compilation for mingw 2013-07-25 15:00:59 +02:00
joris
195cdbea03 Fix typo thanks to codespell. 2013-07-25 14:31:34 +02:00
cybermind
ef2aaa419e [-] Fixed network desync when trying to select units with rectangle and move them 2013-07-20 21:24:18 +06:00
cybermind
637de00822 [-] Fixed bug which didn't allow client to join into game
(note: I'm not highly knowledgable in network protocol programming, but looks like stratagus tries to connect on localhost instrad of address specified in join window)
2013-07-20 16:46:55 +06:00
Pali Rohár
752c9f77b2 winapi attachconsole.cpp: Use macro _WIN32_WINNT_WIN2K instead hardcoded constant 0x0500 2013-07-12 14:15:17 +02:00
Pali Rohár
278ec0e474 Fix compile error: include math.h for function floor()
src/video/sdl.cpp:827:91: error: ‘floor’ was not declared in this scope
2013-07-12 14:10:56 +02:00
joris
bb21f79cba Use min/max/clamp. 2013-07-12 09:27:41 +02:00
joris
e73524d87d Fix gcc warnings about mixing && || 2013-07-05 10:59:22 +02:00
joris
486c887c62 use std::min, std::max 2013-07-02 11:57:07 +02:00
Tim Felgentreff
180de1f00d allow distance rules to specify owner of units 2013-06-05 11:38:12 +02:00
Tim Felgentreff
0a6739b153 fix crash that occurs with some compilers when vector capacity isn't initialized 2013-05-30 14:04:33 +02:00
Tim Felgentreff
ab324f9adb feature: allow buildings to spawn buildings within their repair range 2013-05-30 14:02:59 +02:00
Tim Felgentreff
9dd2c82db7 merge lp:~timfelgentreff/stratagus/ButtonCheckUnitsNot 2013-05-30 08:47:54 +02:00
joris
31543a7c99 Clean up:
- Use std::min/max.
- remove useless test: delete null ptr is safe.
2013-05-27 14:02:36 +02:00
Tim Felgentreff
921c298c9c add a button check to disable a button when a unit is available 2013-05-23 01:23:25 +02:00
Tim Felgentreff
a4760fca73 buildings can build buildings if they are within repair range 2013-05-23 00:37:52 +02:00
Tim Felgentreff
a7e147a480 merge lp:stratagus 2013-05-21 21:05:22 +02:00
joris
e64b56d0fb Fix chopping wood. (Bug introduced by rev.8737).
Fix unitTest.
2013-05-19 18:15:00 +02:00
joris
2b3dacf61d Replace condition by std::max.
remove useless condition
2013-05-15 09:43:09 +02:00
cybermind
c6366e3815 [+] Added ability to join into AI force for spell-capture
[*] Flags for CAnimation_SpawnUnit are optional
[*] Joining to AI force is now optional
2013-05-13 16:40:09 +06:00
cybermind
13ffa1d0b3 [+] Added CUnit flag Summoned to mark units which are summoned by spells
[*] Summoned units don't bother AI when attacked and join into AI attack forces to help in attack wave
[*] Some animation code clean-up
2013-05-12 21:09:02 +06:00
cybermind
a5d5580115 [*] Limit the count of AI forces available through Lua functions to 25.
The forces from 25 to 49 are used to hold attacking forces.
This fixes a situation when user couldn't use forces with bigger indexes because they were used to hold attacking force
2013-05-12 18:17:20 +06:00
cybermind
71f78c119e [-] Fix crash when resource unit is destroyed 2013-05-12 18:12:43 +06:00
cybermind
a126ed9962 [+] Add CPreference::PauseOnLeave parameter to control the game pause when the window is inactive 2013-05-12 18:11:08 +06:00
cybermind
e6d1b09470 [*] Check button-specific allow conditions when Allowed field is filled with user condition 2013-05-12 14:32:57 +06:00
cybermind
aae9643d4a [-] Fixed bug when research don't modify the stats of non-ready buildings 2013-05-12 14:30:06 +06:00
cybermind
92d8da8469 [-] Fixed bug when player loses resources if he stops resource-using action (upgrade-to, research etc) 2013-05-12 14:27:20 +06:00
cybermind
e0542ff0e1 [-] Fixed action freeze when speeds are lower than 100 2013-05-12 14:24:45 +06:00
cybermind
70d2627204 [+] Added CAnimation_SetVar changes into CAnimation_SetPlayerVar 2013-05-10 23:21:37 +06:00
cybermind
fbd6c30113 [+] Added AND, OR, XOR and NOT operators in CAnimation_SetVar
[+] Added string aliases for operators
2013-05-10 22:29:43 +06:00
cybermind
9cbf372306 [+] Added CclDefineSpell parameter "force-use-animation" to use animation code for "self" targeted spells (enables to use spells as some type of commands promted through button panel) 2013-05-10 22:16:08 +06:00
Tim Felgentreff
cc719afc03 shrink actual capacity of vector to fit when starting new game 2013-05-10 15:16:48 +02:00
joris
cb88d6b3f7 Fix compilation with gcc 2013-05-10 15:08:16 +02:00
Tim Felgentreff
dc9f3e7485 merge lp:~timfelgentreff/stratagus/timfelgentreff-zoomeable-view 2013-05-10 09:16:26 +02:00
cybermind
2fa0216c2f [+] Added CAnimation_LuaCallback which allows user to call lua functions from animations.
Usage: "lua-callback func_name arg1 [argN ...]"
2013-05-09 22:32:37 +06:00
cybermind
a63a4fff61 [+] Added drawlevel sorting for particles 2013-05-09 11:07:50 +06:00
cybermind
b9fb1bfd1b [-] Spell_Teleport uses standard method for mana subtraction 2013-05-08 18:17:28 +06:00
cybermind
c25f13d6d4 [+] Added CUnitType::TeleportCost and CUnitType::TeleportEffect to customize portals 2013-05-08 18:10:35 +06:00
joris
da22b538d9 Fix clang warnings 2013-05-06 20:18:00 +02:00
cybermind
f7a5a173f7 [-] Fixed life bar drawing bug for extremly low values 2013-05-05 11:45:42 +06:00
cybermind
2901ead35c [+] Added OnInit lua callback for CUnitType to initialize unit variables after creation 2013-05-04 19:45:27 +06:00