Marco Antonio J. Costa and majcosta
049981b35f
remove now unused functions
...
we use a single function to turn a number into a money formatted string
now
2025-10-08 05:36:37 -03:00
Marco Antonio J. Costa and majcosta
3d29eff4d8
use FormatMoney everywhere
2025-10-08 05:36:37 -03:00
Marco Antonio J. Costa and majcosta
0dd32c4670
move FormatMoney to Text Utils
2025-10-08 05:36:37 -03:00
Marco Antonio J. Costa and majcosta
fee56e37e7
better FormatMoney
2025-10-08 05:36:37 -03:00
Marco Antonio J. Costa and majcosta
d79a445ad1
remove ATM_BUTTONS_* definitions
2025-10-08 03:07:23 -03:00
Marco Antonio J. Costa and majcosta
b1ccdf4e38
remove unused TransferFundsFromBankToMerc/MercToBank
2025-10-08 03:07:23 -03:00
Marco Antonio J. Costa and majcosta
86ec94b40a
stop using sATMText for "Insufficient Funds" message
...
it is about to go
2025-10-08 03:07:23 -03:00
Marco Antonio J. Costa and majcosta
2eff78a2cf
remove scope and fix whitespace in RenderAtmPanel
2025-10-07 23:09:53 -03:00
Marco Antonio J. Costa and majcosta
3d95c47356
refactor UpDateStateOfStartButton
2025-10-07 23:09:53 -03:00
Marco Antonio J. Costa and majcosta
0ebcf0fa06
remove comments
2025-10-07 23:09:53 -03:00
Marco Antonio J. Costa and majcosta
d6166000c9
rename fShowAtmPanelStartButton into something truthful
...
there is no start button, this just controls whether to draw the four
buttons in the Personnel tab of the laptop or not
also get rid of lying comments
also make it static, laptop.cpp doesn't use it at all
2025-10-07 22:59:05 -03:00
Marco Antonio J. Costa and majcosta
08b8d2f04f
remove leftover unused stuff from personnel.cpp
2025-10-07 22:59:05 -03:00
Marco Antonio J. Costa and majcosta
ba2e69d045
remove fATMFlags-dependent code since it is always 0
2025-10-07 22:59:05 -03:00
Marco Antonio J. Costa and majcosta
c9cf34d608
remove unused ATMNumberButtonCallback
2025-10-07 22:59:05 -03:00
Marco Antonio J. Costa and majcosta
be109b71fa
unused RenderRectangleForPersonnelTransactionAmount
2025-10-07 22:59:05 -03:00
Marco Antonio J. Costa and majcosta
690d9e1336
remove unused HandleStateOfATMButtons
2025-10-07 22:59:05 -03:00
Marco Antonio J. Costa and majcosta
3c87ae2724
remove unused code when fShowAtmPanel is FALSE
...
fShowAtmPanel is always FALSE
2025-10-07 22:59:05 -03:00
Marco Antonio J. Costa and majcosta
6c96b80afc
Remove unused ATMOther2ButtonCallback
2025-10-07 20:36:22 -03:00
Marco Antonio J. Costa and majcosta
00b5758af1
remove unused ATMOtherButtonCallback
2025-10-07 20:36:22 -03:00
Marco Antonio J. Costa and majcosta
72ab9b0135
Remove unused CreateDestroyATMButton
2025-10-07 20:36:22 -03:00
Marco Antonio J. Costa and majcosta
92813f5ce1
remove unused ATMStartButtonCallback
2025-10-07 20:36:22 -03:00
Marco Antonio J. Costa and majcosta
a9dd9d0ca6
fix visual bug introduced by removing DrawMoneyOnScreen
...
AIM profile fees now display correctly for old inventory system as well
2025-10-05 10:54:44 -03:00
Marco Antonio J. Costa and majcosta
e8aedb29d5
show daily discounted costs for 1week and 2week contracts
...
also shorten translations to fit the UI
2025-09-26 02:31:02 -03:00
Marco Antonio J. Costa and majcosta
ffe987061e
remove DrawMoneyOnScreen
...
there's already a function to draw text on the screen. a money amount is
text, so just return a string and print that.
2025-09-26 02:31:02 -03:00
Asdow
82aca548f5
Merge branch 'master' into ExtraMercs
2025-09-24 16:14:10 +03:00
BeatAroundTheBuscher and GitHub
ed00830202
Fixes Upper/Lower Casing for include paths ( #487 )
...
* Fixing upper/lower case for includes
types.h, zconf.h and zlib.h were renamed so that global includes like Types.h
are not used.
2025-08-16 22:01:12 -03:00
Asdow
c62d767622
Update to Master
2025-08-08 18:00:31 +03:00
Asdow
9b83d6a3bc
Increase squad amount to 40
2025-08-08 16:39:52 +03:00
Asdow
ee2807ae64
Default to 1st kit if deciding not to buy gear in UB
...
1st one is included in the hiring fee
2025-04-26 00:37:38 +03:00
Asdow
b23c9ac8b1
Do not prompt for buying inventory for 1st kit in UB
2025-04-26 00:37:38 +03:00
Asdow
fa0c5a2862
Prevent hiring MERC in UB if not enough funds
2025-04-26 00:37:38 +03:00
Asdow
db6da100e1
Reset selected gear kit when browsing mercs
2025-04-26 00:37:38 +03:00
Asdow
a3e7ce5794
Display special offer for 1st M.E.R.C. inv kit in UB
...
* Use weekly instead of daily salary for total cost calculation
2025-04-26 00:37:38 +03:00
Asdow
5062ae74f2
Display correct salary info for MERCs in UB campaign
2025-04-26 00:37:38 +03:00
Marco Antonio J. Costa and majcosta
ac6a1504df
add a space to string to prevent compilation errors in GB2312
2025-01-05 10:04:04 -03:00
majcosta and GitHub
4a16698cdb
CHINESE: actually display BobbyR amount purchased correctly at runtime ( #398 )
...
* Revert "Move CHINESE BOBBYR_ITEMS_BOUGHT_X conditional definition to i18n"
This reverts commit ecdc8916f2 .
* actually display the amount purchased correctly at runtime
2025-01-03 21:03:09 -03:00
Marco Antonio J. Costa
4a7625cef0
Slightly clunky RUSSIAN conversion
2024-12-31 16:28:44 -03:00
Marco Antonio J. Costa
ecdc8916f2
Move CHINESE BOBBYR_ITEMS_BOUGHT_X conditional definition to i18n
...
Just awful
2024-12-31 16:28:44 -03:00
Marco Antonio J. Costa
cf0b4dfc40
Manual unrolling preprocessor stuff and added function
...
This function is just for GERMAN but it has a unique name so it's no
problem.
Had to slightly change how MercID gets populated
2024-12-31 16:28:44 -03:00
Marco Antonio J. Costa
d008d10b31
Replace a ton of trivial #ifdefs with runtime checks
...
This one is big, but unless I missed something, should be all be
trivial.
scripted-diff with the following, then manually tweaked whatever needed:
```
if [ $# -ne 3 ]; then
echo "Usage: $0 '<pattern>' '<replacement>' '<filename>'"
exit 1
fi
pattern="$1"
replacement="$2"
filename="$3"
if [ ! -f "$filename" ]; then
echo "Error: File $filename does not exist."
exit 1
fi
sed -i '/'"$pattern"'/ {
:loop
$ !{
N
/'"$pattern"'.*\n.*#endif/ {
s/'"$pattern"'/'"$replacement"'/
s/#else/} else {/
s/#endif/}/
P
D
}
/'"$pattern"'/ b loop
}
}' "$filename"
echo "Replacement complete in $filename"
```
h/t to Grok2 for the sed command
2024-12-31 16:28:44 -03:00
Asdow
3cfde817ba
Set table mouse_region priorities lower than bookmark bar
2024-12-30 21:21:30 +02:00
Marco Antonio J. Costa and majcosta
897f684705
remove all #include's for Language Defines
...
scripted diff:
find . -type f -iname "*.h" -exec sed -i -E '/#include.*language\ defines\.h/I d' {} \;
find . -type f -iname "*.cpp" -exec sed -i -E '/#include.*language\ defines\.h/I d' {} \;
2024-12-27 02:35:29 -03:00
Marco Antonio J. Costa and majcosta
6b9997b9c5
we don't use USE_CODE_PAGE anymore
2024-12-26 11:51:31 -03:00
Asdow
c30b1c1b25
Reimplement UB pricing for AIM
2024-12-24 22:48:41 +02:00
Marco Antonio J. Costa and majcosta
86ad401186
add newline at end of file where it's lacking
...
.editorconfig already enforces it but it's getting changed piecemeal in
every commit. just get it done with.
the script:
```
find . -type f -not -path "./.git/*" -not -path "./.vs/*" | while read -r file; do
isFile=$(file -0 "$file" | cut -d $'\0' -f2)
case "$isFile" in
(*text*)
echo "$file is text"
if [[ $(tail -c 1 "$file" | wc -l) -ne 1 ]]; then
echo "" >> "$file"
fi
;;
(*)
echo "file isn't text"
;;
esac
done
```
2024-12-14 19:05:48 -03:00
Asdow
bfb724eab9
Use SoldierID
2024-12-01 18:23:52 +02:00
Asdow
de56f653ec
Use SoldierID
2024-11-30 23:47:00 +02:00
Asdow
2eb16c583c
Use SoldierID
2024-11-30 17:18:04 +02:00
Asdow
845d784bff
Use SoldierID
2024-11-20 22:33:33 +02:00
Asdow
2a52347198
Update personnel.cpp
2024-11-20 00:04:29 +02:00