2025-08-09 08:50 CEST

spring: develop d80059aa Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
tvo tvo develop 2006-09-30 20:46:31 develop fa85dea0
Changeset * Fix some gcc warnings.
* Add FIGHT command to LuaBinder.
* Add canFight and canRepeat unit fbi tags.

* Fix the numerous bugs/inefficiencies/inconsistencies introduces by the canAssist,canPatrol,etc. patch by AF:
  - canPatrol,canAttack,etc. didn't work on non-builder units.
  - reclaiming,repairing,attacking etc. was still being calculated and quite possibly being performed while patrolling/fighting.
  - builders with canReclaim=0 would still try to reclaim features when placing buildings, but they'd get stuck in an infinite loop
    trying to reclaim but not being allowed to...
  - same bug in other situations, ie. with repairing in a fight/patrol command, etc.
  - canAssist and canRepair weren't separated properly in FindRepairTargetAndRepair().
  - etc.

I think the CommandAI code should work ok with all the tags now.



git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@2327 37977431-3df6-0310-b722-df95706aa16b
mod - rts/Sim/Projectiles/SimpleParticleSystem.cpp Diff ] File ]
mod - rts/Sim/Projectiles/SimpleParticleSystem.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/AirCAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/AirCAI.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/BuilderCAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/BuilderCAI.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/CommandAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/CommandAI.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/FactoryCAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/FactoryCAI.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/MobileCAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/MobileCAI.h Diff ] File ]
mod - rts/Sim/Units/UnitDef.h Diff ] File ]
mod - rts/Sim/Units/UnitDefHandler.cpp Diff ] File ]
mod - rts/System/Script/LuaBinder.cpp Diff ] File ]