Skip to content

Commit

Permalink
add verve's equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
omicronrex committed Aug 8, 2024
1 parent 0632991 commit b715c7d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
14 changes: 13 additions & 1 deletion gm82core.gej
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"folder": "gm82",
"version": "1.6",
"author": "renex, Floogle, Lovey01, cam900, Adamcake, YellowAfterlife, Verve",
"date": "02/08/2024",
"date": "07/08/2024",
"license": "Free to use, also for commercial games.",
"description": "Part of the standard Game Maker 8.2 distribution. This extension package contains a number of helper functions that are commonly used, and also geometry functions introduced in GM:Studio. This extension is also required for using the other GM 8.2 extensions, Sound and Joystick.",
"helpfile": "",
Expand Down Expand Up @@ -1200,6 +1200,18 @@
],
"returntype": 2
},
{
"name": "is_equal",
"extname": "",
"calltype": 2,
"helpline": "is_equal(a,b)",
"hidden": false,
"argtypes": [
2,
2
],
"returntype": 2
},
{
"name": "object_is_child_of",
"extname": "",
Expand Down
10 changes: 10 additions & 0 deletions source/accelerators.gml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@
event_perform(ev_trigger,argument0)


#define is_equal
///is_equal(a,b)

if (is_real(argument0)!=is_real(argument1)) {
return false
}

return (argument0==argument1)


#define object_is_child_of
///object_is_child_of(object)
//object: object to check
Expand Down

0 comments on commit b715c7d

Please sign in to comment.