Delete this (Simba.simba)
I mean...really?Code:function IntToPoint(x,y : integer) : TPoint; begin result := Point(x,y); end;
Delete this (Simba.simba)
I mean...really?Code:function IntToPoint(x,y : integer) : TPoint; begin result := Point(x,y); end;
It was probably there for SCAR compatibility. Aren't you happy we didn't just include it in Simba but did it like this?![]()
Does the include (SRL) use it at all?
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
Haha yes very happy it can be deleted :P
Not used as far as I could find.
Code:ian@ubuntu:~/mahsheet/mySimba/srl-opendev$ grep -ri IntToPoint * SRL/misc/users.scar: MousePosPoint := srlpf_PlayerPageControl[ArmyIndex].ClientToScreen(IntToPoint(x, y)); SRL/misc/users.scar: MousePosPoint := srlpf_ArmyPageControl.ClientToScreen(IntToPoint(x, y)); SRL/misc/.svn/text-base/users.scar.svn-base: MousePosPoint := srlpf_PlayerPageControl[ArmyIndex].ClientToScreen(IntToPoint(x, y)); SRL/misc/.svn/text-base/users.scar.svn-base: MousePosPoint := srlpf_ArmyPageControl.ClientToScreen(IntToPoint(x, y)); SRL/core/simba.simba:function IntToPoint(x,y : integer) : TPoint; SRL/core/.svn/text-base/simba.simba.svn-base:function IntToPoint(x,y : integer) : TPoint; ian@ubuntu:~/mahsheet/mySimba/srl-opendev$
Grep is amazing.
Ok, so its used twice in users.scar. No problem, just delete for next SRL version![]()
g/re/p is quite amazing.
By the way, a quick search for IntToPoint in SRL5 showed no use of IntToPoint.![]()
To use of it is quite lazy in my mind![]()
Originally Posted by DD on IRC
hm iv seen similar things such as point; and tile; whats the difference imo tile should be deleted?
Quite useful function actually
FunctionWhichWantsTPoint(IntToPoint(x, y));
Saves a few lines and a variable.
I made a new script, check it out!.
There are currently 1 users browsing this thread. (0 members and 1 guests)