mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Fix compiler warning. "const int" return type makes no sense
This commit is contained in:
parent
9f46ad7835
commit
963186e1ec
@ -51,7 +51,7 @@ get_manifold_point() {
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE const int BulletContact::
|
||||
INLINE int BulletContact::
|
||||
get_idx0() const {
|
||||
|
||||
return _idx0;
|
||||
@ -62,7 +62,7 @@ get_idx0() const {
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE const int BulletContact::
|
||||
INLINE int BulletContact::
|
||||
get_idx1() const {
|
||||
|
||||
return _idx1;
|
||||
@ -73,7 +73,7 @@ get_idx1() const {
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE const int BulletContact::
|
||||
INLINE int BulletContact::
|
||||
get_part_id0() const {
|
||||
|
||||
return _part_id0;
|
||||
@ -84,7 +84,7 @@ get_part_id0() const {
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE const int BulletContact::
|
||||
INLINE int BulletContact::
|
||||
get_part_id1() const {
|
||||
|
||||
return _part_id1;
|
||||
@ -112,4 +112,3 @@ get_contact(int idx) {
|
||||
nassertr(idx >= 0 && idx < (int)_contacts.size(), _empty);
|
||||
return _contacts[idx];
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : BulletContact
|
||||
// Description :
|
||||
// Description :
|
||||
////////////////////////////////////////////////////////////////////
|
||||
struct EXPCL_PANDABULLET BulletContact {
|
||||
|
||||
@ -36,10 +36,10 @@ PUBLISHED:
|
||||
INLINE BulletManifoldPoint &get_manifold_point();
|
||||
INLINE PandaNode *get_node0() const;
|
||||
INLINE PandaNode *get_node1() const;
|
||||
INLINE const int get_idx0() const;
|
||||
INLINE const int get_idx1() const;
|
||||
INLINE const int get_part_id0() const;
|
||||
INLINE const int get_part_id1() const;
|
||||
INLINE int get_idx0() const;
|
||||
INLINE int get_idx1() const;
|
||||
INLINE int get_part_id0() const;
|
||||
INLINE int get_part_id1() const;
|
||||
|
||||
private:
|
||||
static btManifoldPoint _empty;
|
||||
@ -59,7 +59,7 @@ private:
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : BulletContactResult
|
||||
// Description :
|
||||
// Description :
|
||||
////////////////////////////////////////////////////////////////////
|
||||
struct EXPCL_PANDABULLET BulletContactResult : public btCollisionWorld::ContactResultCallback {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user